Advertisement
Guest User

Untitled

a guest
Apr 17th, 2014
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. XMLHttpRequest cannot load http://www.google.fr.
  2. No 'Access-Control-Allow-Origin' header is present on the requested resource.
  3. Origin 'http://fiddle.jshell.net' is therefore not allowed access.
  4.  
  5. app.config(['$httpProvider',function ($httpProvider) {
  6. $httpProvider.defaults.useXDomain = true;
  7. delete $httpProvider.defaults.headers.common['X-Requested-With'];
  8. }]);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement