Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

corset

Package Overview
Dependencies
Maintainers
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

corset

  • 0.0.1
  • Rubygems
  • Socket score

Version published
Maintainers
2
Created
Source

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

FAQs

Package last updated on 07 Jan 2013

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc