diff options
author | Robert Speicher <rspeicher@gmail.com> | 2015-10-07 22:08:37 -0400 |
---|---|---|
committer | Robert Speicher <rspeicher@gmail.com> | 2015-10-07 22:08:37 -0400 |
commit | 5e01e1bb901c967e71d165a1e664b49538277c10 (patch) | |
tree | 20bd0382708b86b591865abbf0160c32a5a6bf9b | |
parent | f9744ea9a42f206f00b16fd7866540bb9edcd93c (diff) | |
download | gitlab-ce-5e01e1bb901c967e71d165a1e664b49538277c10.tar.gz |
Use `methods: :any` in our rack-cors configurationrs-update-rack-cors
This was added in rack-cors 0.4.0 and allows all types of CORS requests
to the API.
-rw-r--r-- | config/application.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/config/application.rb b/config/application.rb index a96e22211e6..bfa2a809dd7 100644 --- a/config/application.rb +++ b/config/application.rb @@ -74,7 +74,7 @@ module Gitlab origins '*' resource '/api/*', headers: :any, - methods: [:get, :post, :options, :put, :delete], + methods: :any, expose: ['Link'] end end |