Re:Amazon S3 - Cross Origin Resource Sharing Support
by charliesome on Saturday September 01, 2012 @08:02AM
(#4463480)
The request is still made regardless, your JavaScript just won't be able to access the response without a CORS header set.
[ Parent
| on HN ]
Re:Amazon S3 - Cross Origin Resource Sharing Support
by MatthewPhillips on Saturday September 01, 2012 @08:04AM
(#4463488)
The request isn't actually made (at least not your request). The browser sends an OPTIONS request to get the CORS policy and then will block your request if its not allowed.
Edit: My above comment is slightly incorrect. If the request is "simple" it will be made and then you'll be blocked if it doesn't fit the CORS policy. If the request is not deemed "simple" (according to some rules you can look up in the spec) then the OPTIONS flow occurs.
Re:Amazon S3 - Cross Origin Resource Sharing Support
by TazeTSchnitzel on Saturday September 01, 2012 @08:10AM
(#4463494)
Ah I see. I wondered if it dd some such thing. That's good to know.