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

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -