Merge pull request #8642 from fchasen/master
Expose Link header in CORS Api calls
This commit is contained in:
commit
98116b768c
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue