Commit 5e01e1bb authored by Robert Speicher's avatar Robert Speicher

Use `methods: :any` in our rack-cors configuration

This was added in rack-cors 0.4.0 and allows all types of CORS requests
to the API.
parent f9744ea9
......@@ -74,7 +74,7 @@ module Gitlab
origins '*'
resource '/api/*',
headers: :any,
methods: [:get, :post, :options, :put, :delete],
methods: :any,
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