Hi,
It is possible to cache preflight requests. You need to set an header (on your server). iirc the header is Access-Control-Max-Age
Regards
Sander
--
You received this message because you are subscribed to a topic in the Google Groups "AngularJS" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/angular/8krFnmC_Svs/unsubscribe.
To unsubscribe from this group and all its topics, send an email to angular+u...@googlegroups.com.
To post to this group, send email to ang...@googlegroups.com.
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.
it is impossible to avoid a preflight on PUT/DELETE requestsIf your API returns JSON, note that a Content-Type of 'application/json' also triggers a preflight.
There's very little you can do to limit preflights over the course of a long running app. I'm hopeful the authors of the CORS spec will try to address this in the future.
it is impossible to avoid a preflight on PUT/DELETE requestsIf your API returns JSON, note that a Content-Type of 'application/json' also triggers a preflight.