Hi All, I am a newbie. I am following http://railscasts.com/episodes/383-uploading-to-am... to upload file. I am able to upload single file with carrierwave. But I got 403(Forbidden) error when I try to upload multiple files using jquery file upload. When I try to upload single/multiple file I get alert box saying failed to upload and in console it says "Failed to load resource: the server responded with a status of 403 (Forbidden)" and "XMLHttpRequest cannot load https://xyz.s3.amazonaws.com/. Origin http://localhost:3000 is not allowed by Access-Control-Allow-Origin." What do I need to do to fix this? Thank you
on 2012-11-28 11:18
on 2012-11-28 12:52
On Tue, Nov 27, 2012 at 4:02 PM, Sahil Shah <sahil.shah288@gmail.com> wrote: > When I try to upload single/multiple file I get alert box saying failed to > upload and in console it says "Failed to load resource: the server responded > with a status of 403 (Forbidden)" and "XMLHttpRequest cannot > loadhttps://xyz.s3.amazonaws.com/. Origin http://localhost:3000 is not > allowed by Access-Control-Allow-Origin." You need to contact AWS and consult their docs.
Please log in before posting. Registration is free and takes only a minute.
Existing account
(Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
Log in with Google account | Log in with Yahoo account
No account? Register here.