Created
March 4, 2020 02:25
-
-
Save donrestarone/2660c91002d4d09af8221a83210b3d93 to your computer and use it in GitHub Desktop.
cors setup for http-only cookies
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
Rails.application.config.middleware.insert_before 0, Rack::Cors, debug: true do | |
allow do | |
origins 'http://client.your-domain-here.ngrok.io' | |
resource '*', | |
headers: :any, | |
methods: [:get, :post, :put, :patch, :delete, :options, :head] | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment