Commit 13c4e25d authored by Fred Chasen's avatar Fred Chasen

Split up line and use single qoutes to declare Cors settings

parent 85b3c87b
......@@ -70,7 +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%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment