Skip to content

Instantly share code, notes, and snippets.

@abulte
Last active May 14, 2016 16:30
Show Gist options
  • Save abulte/8112151 to your computer and use it in GitHub Desktop.
Save abulte/8112151 to your computer and use it in GitHub Desktop.
Angular CORS *BAD* pratice
myApp.config(['$httpProvider', function($httpProvider) {
$httpProvider.defaults.useXDomain = true;
delete $httpProvider.defaults.headers.common['X-Requested-With'];
}
]);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment