session header cors

This commit is contained in:
Brandon Thomas committed 2024-04-11 23:28:27 -04:00
1 parent f8d6d75cc4
commit 64e8136609
1 file changed
+2 -1
+2 -1
View File
@@ -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)
}