Maybe I'm missing something entirely, but I have a server running locally, and have not configured Angular to use CORS for $http requests. When I make an HTTP request to localhost:<port>
, I see Chrome create an OPTIONS request first.
Because I need to support IE 8 - and AngularJS definitely will not work there with CORS - I need to remove CORS.
I have tried directly setting the POST
method not using the $http.post
wrapper with no avail. Perhaps this is related to https://github.com/angular/angular.js/issues/1585
I've also tried calling a jQuery ajax post directly from a controller - even with the CORS option as false (because it seemed to default to true). It still creates a CORS request.
What is the configuration for this?
See Question&Answers more detail:os