diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-01-30 05:46:27 +0300 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-01-30 05:46:27 +0300 |
commit | 98116b768c5bf74799fb7d5bd283cec0d99dc73b (patch) | |
tree | abb93906d53620f69dda4ce6ff83cde443f18dd7 /config | |
parent | a3c2873f50f42016619f8ffc959cf9e20b5f340d (diff) | |
parent | 1f5ecf6c502b1dffa26986b1e62cf46cbc58f981 (diff) |
Merge pull request #8642 from fchasen/master
Expose Link header in CORS Api calls
Diffstat (limited to 'config')
-rw-r--r-- | config/application.rb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/config/application.rb b/config/application.rb index a7d371c78ea..24ba219cf3a 100644 --- a/config/application.rb +++ b/config/application.rb @@ -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 |