Add DELETE to api cors
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
This commit is contained in:
parent
adf559581c
commit
445f31c642
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue