FIX: CORS middleware needs to happen earlier than AnonymousCache middleware
This commit is contained in:
parent
3905778fc0
commit
954d75f81c
|
@ -37,5 +37,5 @@ if GlobalSetting.enable_cors
|
|||
end
|
||||
end
|
||||
|
||||
Rails.configuration.middleware.use Discourse::Cors
|
||||
Rails.configuration.middleware.insert_before ActionDispatch::Flash, Discourse::Cors
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue