From 8ef4a38c0873bea6c009b63a605f93b55c039674 Mon Sep 17 00:00:00 2001 From: AINDUSTRIES Date: Mon, 17 Mar 2025 22:31:33 +0100 Subject: [PATCH] Added CORS allow credential header to options and responses --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index a557df1..549521e 100644 --- a/src/main.rs +++ b/src/main.rs @@ -35,7 +35,7 @@ async fn main() -> std::io::Result<()> { .wrap(DefaultHeaders::new().add(( "Access-Control-Allow-Origin", app_state.allow_origins.join(","), - ))) + )).add(("Access-Control-Allow-Credentials", "true"))) .service(login) .service(register) .service(logout)