FEATURE: Cache CORS preflight for MessageBus (#14616)

* FEATURE: Cache CORS preflight for MessageBus

Followup for b301a6b for MessageBus
This commit is contained in:
Rafael dos Santos Silva 2021-10-15 00:23:53 -03:00 committed by GitHub
parent c34c24ffe4
commit 6ad76520b8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -30,7 +30,8 @@ def setup_message_bus_env(env)
extra_headers = {
"Access-Control-Allow-Origin" => Discourse.base_url_no_prefix,
"Access-Control-Allow-Methods" => "GET, POST",
"Access-Control-Allow-Headers" => "X-SILENCE-LOGGER, X-Shared-Session-Key, Dont-Chunk, Discourse-Present"
"Access-Control-Allow-Headers" => "X-SILENCE-LOGGER, X-Shared-Session-Key, Dont-Chunk, Discourse-Present",
"Access-Control-Max-Age" => "7200",
}
user = nil