Skip to content

Instantly share code, notes, and snippets.

@bjensen
Created February 8, 2019 08:33
Show Gist options
  • Save bjensen/90f8b6c6f206a07c4e4f323bdd65a78a to your computer and use it in GitHub Desktop.
Save bjensen/90f8b6c6f206a07c4e4f323bdd65a78a to your computer and use it in GitHub Desktop.
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