Merge pull request #17 from turniere/feature/cors

Add exposed headers to cors config
This commit is contained in:
Thor77 2018-12-04 14:37:56 +01:00 committed by GitHub
commit 3e4853046a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -37,7 +37,7 @@ module TurniereBackend
config.middleware.insert_before 0, Rack::Cors do config.middleware.insert_before 0, Rack::Cors do
allow do allow do
origins '*' origins '*'
resource '*', headers: :any, methods: :any resource '*', headers: :any, methods: :any, expose: ['access-token', 'client', 'expiry', 'uid']
end end
end end
end end