Skip to content

Instantly share code, notes, and snippets.

@HeshamMagdy97
Created August 5, 2019 23:47
Show Gist options
  • Save HeshamMagdy97/3a01b8ebb103fbb2457d83172cef4ba1 to your computer and use it in GitHub Desktop.
Save HeshamMagdy97/3a01b8ebb103fbb2457d83172cef4ba1 to your computer and use it in GitHub Desktop.
config.middleware.insert_before 0, Rack::Cors do
allow do
origins '*'
resource '*', headers: :any,expose: ['access-token', 'expiry', 'token-type', 'uid', 'client', 'Authorization'],
methods: [:get, :post, :options, :put, :delete]
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment