Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@johnnytomcat
Last active August 21, 2018 19:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save johnnytomcat/b9f8e7ac6b3fe9e2363e132becb66b0b to your computer and use it in GitHub Desktop.
Save johnnytomcat/b9f8e7ac6b3fe9e2363e132becb66b0b to your computer and use it in GitHub Desktop.
config.middleware.insert_before 0, Rack::Cors do
allow do
origins '*'
resource '*',
:headers => :any,
:methods => [:get, :post, :options],
expose: %w(Authorization)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment