BigW Consortium Gitlab

Commit 98116b76 by Dmitriy Zaporozhets

Merge pull request #8642 from fchasen/master

Expose Link header in CORS Api calls
parents a3c2873f 1f5ecf6c
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment