4 ms·
I tweeted the same thing to that account and got no response. I'm glad you did. the Access-Control-Allow-Origin header has been a heavily requested feature sinc
by akoumjian 14y ago
I tweeted the same thing to that account and got no response. I'm glad you did. the Access-Control-Allow-Origin header has been a heavily requested feature since 2009: https://forums.aws.amazon.com/thread.jspa?threadID=34281&start=175&tstart=0 https://forums.aws.amazon.com/thread.jspa?threadID=34281&...
One example of how fundamental this is: you cannot currently perform a direct AJAX upload to an s3 bucket from a web application hosted on an ec2 instance.
There is a postMessage hack that will work with small files, and of course you can use a proxy, but you'd think it would be a common scenario to want to upload files directly to S3.
- boucher 14y agoYou can upload files directly to s3 from your website: http://aws.amazon.com/articles/1434 http://aws.amazon.com/articles/1434
- Smrchy 14y agoThis only works standalone and not embedded in an AJAX application. I only wish someone from the S3 team at Amazon would at least answer to this thread: https://forums.aws.amazon.com/thread.jspa?threadID=34281&start=175&tstart=0 https://forums.aws.amazon.com/thread.jspa?threadID=34281&... Hundreds of messages in this thread and no answer after 2 years and counting.
- boucher 14y agoWell, "AJAX application" is too nebulous of a term to really be meaningful here. If you mean you can't use an XHR request, sure, but you can certainly construct the necessary <input> element and POST request dynamically with JavaScript.