Add DELETE to api cors

Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
This commit is contained in:
Dmitriy Zaporozhets 2013-12-11 17:59:37 +02:00
parent adf559581c
commit 445f31c642
No known key found for this signature in database
GPG key ID: 627C5F589F467F17

View file

@ -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