Skip to content
Snippets Groups Projects
Commit 3f12c07f authored by ThibG's avatar ThibG Committed by Eugen Rochko
Browse files

Use same CORS policy for /@:username and /users/:username (#9485)

Fixes #8189

rack-cors being called before the application router, it does not follow
the redirection, and we need a separate rule for /users/:username.
parent ed24bb2c
Branches
Tags
No related merge requests found
......@@ -17,6 +17,10 @@ Rails.application.config.middleware.insert_before 0, Rack::Cors do
headers: :any,
methods: [:get],
credentials: false
resource '/users/:username',
headers: :any,
methods: [:get],
credentials: false
resource '/api/*',
headers: :any,
methods: [:post, :put, :delete, :get, :patch, :options],
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment