Merge pull request #8642 from fchasen/master

Expose Link header in CORS Api calls
This commit is contained in:
Dmitriy Zaporozhets 2015-01-29 18:46:27 -08:00
commit 98116b768c
1 changed files with 4 additions and 1 deletions

View File

@ -70,7 +70,10 @@ module Gitlab
config.middleware.use Rack::Cors do
allow do
origins '*'
resource '/api/*', headers: :any, methods: [:get, :post, :options, :put, :delete]
resource '/api/*',
headers: :any,
methods: [:get, :post, :options, :put, :delete],
expose: ['Link']
end
end