Commit 445f31c64261eb9c9ca85e59fcb9f8fde171cd9e
1 parent
adf55958
Exists in
master
and in
4 other branches
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,7 +82,7 @@ module Gitlab | ||
82 | config.middleware.use Rack::Cors do | 82 | config.middleware.use Rack::Cors do |
83 | allow do | 83 | allow do |
84 | origins '*' | 84 | origins '*' |
85 | - resource '/api/*', headers: :any, methods: [:get, :post, :options, :put] | 85 | + resource '/api/*', headers: :any, methods: [:get, :post, :options, :put, :delete] |
86 | end | 86 | end |
87 | end | 87 | end |
88 | end | 88 | end |