Skip to content

Commit

Permalink
fix: Use same CORS headers with traefik to work around traefik/traefi…
Browse files Browse the repository at this point in the history
  • Loading branch information
chubei committed Sep 22, 2023
1 parent 451c62d commit 48d35bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dozer-api/src/grpc/grpc_web_middleware.rs
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ where
{
if enabled {
let service = GrpcWebLayer::new().layer(service);
let service = CorsLayer::very_permissive().layer(service);
let service = CorsLayer::permissive().layer(service);
MaybeGrpcWebService::GrpcWeb(service)
} else {
MaybeGrpcWebService::NoGrpcWeb(service)
Expand Down

0 comments on commit 48d35bc

Please sign in to comment.