Created
February 8, 2019 08:33
-
-
Save bjensen/90f8b6c6f206a07c4e4f323bdd65a78a to your computer and use it in GitHub Desktop.
This file contains 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
Rails.application.config.middleware.insert_before 0, Rack::Cors do | |
allow do | |
origins '*' | |
resource '*', headers: :any, methods: [:get, :post, :options, :patch] | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment