From bf1ee48aa22b85c585ed5e871f572195d9d389cc Mon Sep 17 00:00:00 2001 From: Xavier Vello Date: Fri, 3 Nov 2023 10:40:32 +0100 Subject: [PATCH] cors: enable allow_credentials --- capture/src/router.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/capture/src/router.rs b/capture/src/router.rs index 8fc080d..b44578d 100644 --- a/capture/src/router.rs +++ b/capture/src/router.rs @@ -48,6 +48,7 @@ pub fn router< let cors = CorsLayer::new() .allow_methods([Method::GET, Method::POST, Method::OPTIONS]) .allow_headers(Any) + .allow_credentials(true) .allow_origin(AllowOrigin::mirror_request()); let router = Router::new()