title: CORS error with Elastic beanstalk JS SDK describeEnvironmentResources
body: <p>With an example right from <a href="http://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/ElasticBeanstalk.html#describeConfigurationSettings-property" rel="nofollow">their docs</a>:</p>
  
  <pre><code>var params = {
    EnvironmentIds: [ 'my_env' ],
  };
  
  elasticbeanstalk.describeEnvironments(params, function(err, data) {
    if (err) console.log(err, err.stack); // an error occurred
    else     console.log(data);           // successful response
  });
  </code></pre>
  
  <p>The call makes a CORS POST request to <code>https://elasticbeanstalk.us-west-1.amazonaws.com/</code>, which is denied.  </p>
  
  <p>How does one configure CORS for the elastic beanstalk JS SDK?</p>