lib/configure.js
function configureCorsForBucket(aws, bucketName) {
  const params = {
    Bucket: bucketName,
    CORSConfiguration: require('./resources/CORSPolicy')
  };

  return aws.request('S3', 'putBucketCors', params);
}
function configureCorsForBucket(aws, bucketName) {
  const params = {
    Bucket: bucketName,
    CORSConfiguration: require('./resources/CORSPolicy')
  };

  return aws.request('S3', 'putBucketCors', params);
}
function configureCorsForBucket ( aws , bucketName ) { const params = { Bucket : bucketName , CORSConfiguration : require ( './resources/CORSPolicy' ) } ; return aws . request ( 'S3' , 'putBucketCors' , params ) ; }
Configures CORS policy for given bucket
@param {Object} aws - AWS class
@param {string} bucketName - Name of bucket to be configured
Configures CORS policy for given bucket