use new hash syntax
This commit is contained in:
parent
13c4e25d6f
commit
1f5ecf6c50
1 changed files with 4 additions and 4 deletions
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue