Commit 1f5ecf6c authored by Fred Chasen's avatar Fred Chasen

use new hash syntax

parent 13c4e25d
...@@ -70,10 +70,10 @@ module Gitlab ...@@ -70,10 +70,10 @@ module Gitlab
config.middleware.use Rack::Cors do config.middleware.use Rack::Cors do
allow do allow do
origins '*' origins '*'
resource '/api/*', resource '/api/*',
:headers => :any, headers: :any,
:methods => [:get, :post, :options, :put, :delete], methods: [:get, :post, :options, :put, :delete],
:expose => ['Link'] expose: ['Link']
end end
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment