cinely / mule-uploader

Stubborn HTML5 Amazon S3 uploader
http://mule-uploader.com/
MIT License
223 stars 43 forks source link

Failed CORS (Permanent Redirect) with current uploader #42

Closed ElderBrE closed 9 years ago

ElderBrE commented 9 years ago

Updated today all files and found myself with a problem due to the address change.

The browser will report a XMLHttpRequest cannot load https://s3.amazonaws.com/bucket-name/17625200?uploads=&X-Amz-Date=…Signature=00e44cf57cca2a3f240c2e9db83dddec1b032186da155c0fb024986c5ca0eddc. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'https://originserver.com' is therefore not allowed access.

However upon further investigation, Amazon gives this problem:

PermanentRedirect The bucket you are attempting to access must be addressed using the specified endpoint. Please send all future requests to this endpoint. bucket-name bucket-name.s3.amazonaws.com C2D331A80BF608E3 KZ6OJQnvjJeHktLGNuP00LuNDRyz+RjOy7AyAaAsY4O9lEPXDb5yiVRvmhw7k+XUmjzxfcthe1U=

Might have to change back to the old addressing system?

ElderBrE commented 9 years ago

Weird, even going back to the old way, which now gives no Origin problems, gives a 400 Bad Request when trying to POST to Amazon...

Have they changed something that makes the uploader not work?

ElderBrE commented 9 years ago

Closing... Flynarmy's modifications fix this