Created
July 6, 2017 05:23
-
-
Save itzsaga/22764bec4b09c07c1166c9471ca693b1 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
# /config/initializers/cors.rb | |
Rails.application.config.middleware.insert_before 0, Rack::Cors do | |
allow do | |
origins 'localhost:3000' | |
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