Skip to content

Commit

Permalink
relax cors permissions for port 8001 (gRPC) for live tail (#594)
Browse files Browse the repository at this point in the history
  • Loading branch information
nitisht authored Jan 3, 2024
1 parent 9907a33 commit 2e12765
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions server/src/handlers/livetail.rs
Original file line number Diff line number Diff line change
Expand Up @@ -237,9 +237,5 @@ fn extract_cookie(header: &MetadataMap) -> Option<Cookie> {
}

fn cross_origin_config() -> CorsLayer {
if cfg!(feature = "debug") {
CorsLayer::very_permissive().allow_credentials(true)
} else {
CorsLayer::new()
}
CorsLayer::very_permissive().allow_credentials(true)
}

0 comments on commit 2e12765

Please sign in to comment.