Project

corset

0.0
No commit activity in last 3 years
No release in over 3 years
A ruby gem to set the right CORS configuration for an S3 bucket.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

>= 0
>= 0
 Project Readme

Corset

A simple ruby gem to set the right CORS configuration for an S3 bucket.

Installation

$ gem install corset

Usage

Create a .env file with:

  • AWS_ACCESS_KEY_ID
  • AWS_SECRET_ACCESS_KEY
  • FOG_DIRECTORY (the S3 bucket name)
  • AWS_CORS_ALLOWED_ORIGIN (the allowed origin)

Note that you can't use * as the allowed origin if you plan on distributing the bucket via Cloudfront. Currently Cloudfront caches the origin of the first request.

Then run:

$ export $(cat .env) && corset set