From 445f31c64261eb9c9ca85e59fcb9f8fde171cd9e Mon Sep 17 00:00:00 2001 From: Dmitriy Zaporozhets Date: Wed, 11 Dec 2013 17:59:37 +0200 Subject: [PATCH] Add DELETE to api cors Signed-off-by: Dmitriy Zaporozhets --- config/application.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/application.rb b/config/application.rb index d888d04240b..dec1940a4a3 100644 --- a/config/application.rb +++ b/config/application.rb @@ -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