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

Popular posts from this blog

css - Which browser returns the correct result for getBoundingClientRect of an SVG element? -

gcc - Calling fftR4() in c from assembly -

.htaccess - Matching full URL in RewriteCond -