S3 CORS not working with JQuery Ajax request in Chrome S3 CORS not working with JQuery Ajax request in Chrome google-chrome google-chrome

S3 CORS not working with JQuery Ajax request in Chrome


Your CORSConfiguration must contain the port number, because the port number is part of the origin, see e.g. http://en.wikipedia.org/wiki/Same_origin_policy


I just wrote a simple tutorial, it uses rails, but it could easily be translated for any other server framework.
The upload is handled by the awesome jQuery file upload.And Direct upload to s3 with cors.


I'm about to dive into this as well. Have you tried changing AllowedMethod to PUT? File uploads are done using PUT not POST.

--edit

Silly me. I'm getting 403 forbidden with PUT requests. POST requests give a 400 status code.