Commit ae583150 authored by Nick Thomas's avatar Nick Thomas

Move Rack::Attack and Rack::Cors middlewares to be before Warden::Manager

parent fca610e5
...@@ -99,10 +99,10 @@ module Gitlab ...@@ -99,10 +99,10 @@ module Gitlab
config.action_view.sanitized_allowed_protocols = %w(smb) config.action_view.sanitized_allowed_protocols = %w(smb)
config.middleware.use Rack::Attack config.middleware.insert_before Warden::Manager, Rack::Attack
# Allow access to GitLab API from other domains # Allow access to GitLab API from other domains
config.middleware.use Rack::Cors do config.middleware.insert_before Warden::Manager, Rack::Cors do
allow do allow do
origins '*' origins '*'
resource '/api/*', resource '/api/*',
......
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