cinely / mule-uploader

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

CORS Failure #59

Closed scrolls-mckenzie closed 9 years ago

scrolls-mckenzie commented 9 years ago

Hello.

I am trying to get the mule-uploader working on an EC2 instance to load into s3. I am using the example backend and template at this stage to prove functionality. This is on a fresh install of 14.04 Ubuntu with LAMP. I followed the example and have used the example_backend.py script to create the db.

"CORS on bucket (my-domain is correct in my file) <?xml version="1.0" encoding="UTF-8"?>

http://[my-domain]:5000/_ PUT POST GET HEAD 3000 _ " Returning following error: Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at http://evis3uploader.s3-ap-southeast-2.amazonaws.com/275927?uploads=&X-Amz-Date=20150831T023641Z&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Expires=86400&X-Amz-Credential=AKIAJAPEBL7EWRJCDHHQ%2F20150830%2Fap-southeast-2%2Fs3%2Faws4_request&X-Amz-SignedHeaders=Content-Disposition%3BContent-Type%3Bhost%3Bx-amz-acl&X-Amz-Signature=c344b863dbf8f2d4982c4c31e49e25b7e13a64c4e2d741ecc9dda873d78807f9. (Reason: CORS header 'Access-Control-Allow-Origin' missing). If i change the CORS statement to be "*" rather than my qualified domain name i get this error. SignatureDoesNotMatch The request signature we calculated does not match the signature you provided. Check your key and signing method. I have tried to research as much as possible around the CORS issues and can see that there where some merged forks around this problem but I still cant get this to work. Please post if you need any more info..
scrolls-mckenzie commented 9 years ago

Turns out it was a Firefox issue and was solved by using Chrome.