mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-06 02:00:46 +00:00
session header cors
This commit is contained in:
1 parent
f8d6d75cc4
commit
64e8136609
1 file changed
+2
-1
@@ -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)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user