From 64e813660966862c606ccb6d600cf91284d3d2db Mon Sep 17 00:00:00 2001 From: Brandon Thomas Date: Thu, 11 Apr 2024 23:28:27 -0400 Subject: [PATCH] session header cors --- crates/lib/actix_cors_configs/src/cors.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/crates/lib/actix_cors_configs/src/cors.rs b/crates/lib/actix_cors_configs/src/cors.rs index b66f314a27..d4b6c5042a 100644 --- a/crates/lib/actix_cors_configs/src/cors.rs +++ b/crates/lib/actix_cors_configs/src/cors.rs @@ -55,7 +55,8 @@ fn do_build_cors_config(is_production: bool) -> Cors { actix_http::header::ACCESS_CONTROL_ALLOW_ORIGIN, // Tabulator Ajax actix_http::header::CONTENT_TYPE, actix_http::header::ACCESS_CONTROL_ALLOW_CREDENTIALS, // https://stackoverflow.com/a/46412839 - actix_http::header::HeaderName::from_static("x-requested-with") // Tabulator Ajax sends + actix_http::header::HeaderName::from_static("x-requested-with"), // Tabulator Ajax sends + actix_http::header::HeaderName::from_static("session"), // Custom header sent by Three.js Storyteller Studio ]) .max_age(3600) }