提交 1f5ecf6c 编写于 作者: F Fred Chasen

use new hash syntax

上级 13c4e25d
......@@ -70,10 +70,10 @@ module Gitlab
config.middleware.use Rack::Cors do
allow do
origins '*'
resource '/api/*',
:headers => :any,
:methods => [:get, :post, :options, :put, :delete],
:expose => ['Link']
resource '/api/*',
headers: :any,
methods: [:get, :post, :options, :put, :delete],
expose: ['Link']
end
end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册