Commit 98116b76 authored by Dmitriy Zaporozhets's avatar 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