summaryrefslogtreecommitdiff
path: root/config/application.rb
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-12-11 17:59:37 +0200
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-12-11 17:59:37 +0200
commit445f31c64261eb9c9ca85e59fcb9f8fde171cd9e (patch)
tree9a01113ed595952f750de0cb5d3716d826fa18d3 /config/application.rb
parentadf559581cf5ac61445088158072820522337e9f (diff)
downloadgitlab-ce-445f31c64261eb9c9ca85e59fcb9f8fde171cd9e.tar.gz
Add DELETE to api cors
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'config/application.rb')
-rw-r--r--config/application.rb2
1 files changed, 1 insertions, 1 deletions
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