title: Allow AJAX GETs from Amazon S3? (Access-Control-Allow-Origin)
body: <p>I'm storing JSON objects in Amazon S3, and I'd like to load that data directly from S3 from Javascript. My GET looks pretty generic:</p>
  
  <pre><code>$.ajax({
      'type':'GET',
      'url':'http://s3.amazonaws.com/mybucketname/'+id,
      'dataType':'text',
      'success':function(msg) {
          alert(msg);
      }
  });
  </code></pre>
  
  <p>I get the following error:</p>
  
  <pre><code>XMLHttpRequest cannot load http://s3.amazonaws.com/whatever/whatever. Origin http://mylocalhostname:9000 is not allowed by Access-Control-Allow-Origin.
  </code></pre>
  
  <p>I can get that URL from S3 using curl, or by navigating there directly from my browser. Am I really going to have to proxy all of these requests through my own servers?</p>