Created
August 5, 2019 23:47
-
-
Save HeshamMagdy97/3a01b8ebb103fbb2457d83172cef4ba1 to your computer and use it in GitHub Desktop.
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
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