Skip to content

Commit 2e12765

Browse files
authored
relax cors permissions for port 8001 (gRPC) for live tail (#594)
1 parent 9907a33 commit 2e12765

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

server/src/handlers/livetail.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -237,9 +237,5 @@ fn extract_cookie(header: &MetadataMap) -> Option<Cookie> {
237237
}
238238

239239
fn cross_origin_config() -> CorsLayer {
240-
if cfg!(feature = "debug") {
241-
CorsLayer::very_permissive().allow_credentials(true)
242-
} else {
243-
CorsLayer::new()
244-
}
240+
CorsLayer::very_permissive().allow_credentials(true)
245241
}

0 commit comments

Comments
 (0)