Commit 445f31c6 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Add DELETE to api cors

Signed-off-by: default avatarDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
parent adf55958
......@@ -82,7 +82,7 @@ module Gitlab
config.middleware.use Rack::Cors do
allow do
origins '*'
resource '/api/*', headers: :any, methods: [:get, :post, :options, :put]
resource '/api/*', headers: :any, methods: [:get, :post, :options, :put, :delete]
end
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