angularjs - Is there a way to avoid Preflighting with $http? -
i'm using nginx on remote server, , no support options
method i've been terribly stuck. both server , angular refuse talk each other.
i want make simple $http.post() request. there way configure service send post request, , not preflighting options?
this not angularjs does, browser according cross-origin resource sharing standard. see answer on related issue.
however, if make angularjs application served same domain resource (different subdomains affect cross-origin), browser not send options request resource no longer cross-origin server.
example:
- www.example.com requests resource on api.example.com trigger options request
- www.example.com requests resource www.example.com/api not trigger options request
Comments
Post a Comment