]> cat aescling's git repositories - mastodon.git/commit
Use same CORS policy for /@:username and /users/:username (#9485)
authorThibG <thib@sitedethib.com>
Mon, 10 Dec 2018 20:39:47 +0000 (21:39 +0100)
committerEugen Rochko <eugen@zeonfederated.com>
Mon, 10 Dec 2018 20:39:47 +0000 (21:39 +0100)
commit3f12c07ff5f60d22cfbff050a2639345ecbaec57
treed970b7ba33627d6bc0ccc4f30d338b110307117b
parented24bb2c3ecf82521be0685f59ecdee77c6fff39
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.
config/initializers/cors.rb