Commit 445f31c64261eb9c9ca85e59fcb9f8fde171cd9e

Authored by Dmitriy Zaporozhets
1 parent adf55958

Add DELETE to api cors

Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
config/application.rb
... ... @@ -82,7 +82,7 @@ module Gitlab
82 82 config.middleware.use Rack::Cors do
83 83 allow do
84 84 origins '*'
85   - resource '/api/*', headers: :any, methods: [:get, :post, :options, :put]
  85 + resource '/api/*', headers: :any, methods: [:get, :post, :options, :put, :delete]
86 86 end
87 87 end
88 88 end
... ...