javascript - cross domain access-control-allow-origin error -
i trying access web service getting cross domain access-control-allow-origin error
$.getjson("https://beevou.net/oauth/token?grant_type=password&username="+user+ "&password="+pass+"&client_id=ntezzgu5mthlndq0ywm0&client_secret=45d1002085db5dca4dbdbc5f83731 d19662cb265", function(data) { console.log(json.stringify(data)); });
this url. cant change @ web service side. let me know solution rid of problem
thanks in advance
basically, if can't jsonp access or obtain server set necessary cors headers, possible solutions on server :
- issue request on server , serve result page
- set proxy on server let browser think comes same origin (this easiest solution, example mod_proxy if server apache based)
Comments
Post a Comment