LevelbossMike / ember-deploy-s3

ember-deploy assets-adapter for amazon s3
MIT License
19 stars 22 forks source link

Add CORS support for webfonts #18

Open ZenCocoon opened 9 years ago

ZenCocoon commented 9 years ago

When uploading Webfonts to S3 we need to setup Access-Control-Allow-Origin header to either * to let it open to all domains or to have a config to specify which domains can get this files.

tothpeter commented 9 years ago

You can enable CORS on your bucket, by adding a CORS configuration file.

More information here:

https://aws.amazon.com/blogs/aws/amazon-s3-cross-origin-resource-sharing/

http://docs.aws.amazon.com/AmazonS3/latest/dev/cors.html#how-do-i-enable-cors