Add exposed headers to cors config

This commit is contained in:
Thor77 2018-12-04 12:06:11 +01:00
parent ed1314c0da
commit 4aae1033a3
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
allow do
origins '*'
resource '*', headers: :any, methods: :any
resource '*', headers: :any, methods: :any, expose: ['access-token', 'client', 'expiry', 'uid']
end
end
end