Created
February 8, 2017 10:08
-
-
Save jordangraft/89eef6260556a2b97e5adf3bf8f62118 to your computer and use it in GitHub Desktop.
Rack-Cors configuration for Cloudfront
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
config.middleware.insert_before 0, "Rack::Cors" do | |
allow do | |
origins '*' | |
resource '*', :headers => :any, :methods => [:get, :post, :options] | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment