Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- XMLHttpRequest cannot load http://www.google.fr.
- No 'Access-Control-Allow-Origin' header is present on the requested resource.
- Origin 'http://fiddle.jshell.net' is therefore not allowed access.
- app.config(['$httpProvider',function ($httpProvider) {
- $httpProvider.defaults.useXDomain = true;
- delete $httpProvider.defaults.headers.common['X-Requested-With'];
- }]);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement