FIX: CORS middleware needs to happen earlier than AnonymousCache middleware

This commit is contained in:
Neil Lalonde 2017-03-06 12:24:57 -05:00
parent 3905778fc0
commit 954d75f81c
1 changed files with 1 additions and 1 deletions

View File

@ -37,5 +37,5 @@ if GlobalSetting.enable_cors
end end
end end
Rails.configuration.middleware.use Discourse::Cors Rails.configuration.middleware.insert_before ActionDispatch::Flash, Discourse::Cors
end end