From 2e1276544ecbdf3f6ee9e47b98213ed0bda37ab8 Mon Sep 17 00:00:00 2001 From: Nitish Tiwari Date: Wed, 3 Jan 2024 17:26:23 +0530 Subject: [PATCH] relax cors permissions for port 8001 (gRPC) for live tail (#594) --- server/src/handlers/livetail.rs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/server/src/handlers/livetail.rs b/server/src/handlers/livetail.rs index a196fef6c..716a7ed7f 100644 --- a/server/src/handlers/livetail.rs +++ b/server/src/handlers/livetail.rs @@ -237,9 +237,5 @@ fn extract_cookie(header: &MetadataMap) -> Option { } fn cross_origin_config() -> CorsLayer { - if cfg!(feature = "debug") { - CorsLayer::very_permissive().allow_credentials(true) - } else { - CorsLayer::new() - } + CorsLayer::very_permissive().allow_credentials(true) }