mirror of
https://github.com/wahyd4/gitlabhq.git
synced 2026-08-25 12:36:27 +10:00
Add DELETE to api cors
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user