mardi 21 juin 2016

Emberjs Ajax call No 'Access-Control-Allow-Origin' [duplicate]

This question already has an answer here:

I am working on an application where you can listen podcasts. The user is able to add /rss urls of his favourite podcasts. On init i make an AJAX call to urls added by the user

var urls = model.map(function(v) {
  return $.get(v.get('url'));
})

$.when.apply(this, urls).done(function() {
  //i process the response here
}

If i make an Ajax call to /feed-s i get error: No 'Access-Control-Allow-Origin' header is present on the requested resource
Right now the app is only working when i run chrome as chrome.exe --user-data-dir="C:/Chrome dev session" --disable-web-security

Is it possible to make this work without --disable-web-security?




Aucun commentaire:

Enregistrer un commentaire