summaryrefslogtreecommitdiff
path: root/config/application.rb
diff options
context:
space:
mode:
authorRobert Speicher <rspeicher@gmail.com>2015-10-07 22:08:37 -0400
committerRobert Speicher <rspeicher@gmail.com>2015-10-07 22:08:37 -0400
commit5e01e1bb901c967e71d165a1e664b49538277c10 (patch)
tree20bd0382708b86b591865abbf0160c32a5a6bf9b /config/application.rb
parentf9744ea9a42f206f00b16fd7866540bb9edcd93c (diff)
downloadgitlab-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.
Diffstat (limited to 'config/application.rb')
-rw-r--r--config/application.rb2
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