We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent edd5e78 commit 4e5b50eCopy full SHA for 4e5b50e
1 file changed
services/server/src/grpc/server.rs
@@ -61,7 +61,8 @@ pub fn build_grpc_router(
61
HeaderName::from_static("grpc-status"),
62
HeaderName::from_static("grpc-message"),
63
])
64
- .allow_methods([http::Method::POST, http::Method::OPTIONS]);
+ .allow_methods([http::Method::POST, http::Method::OPTIONS])
65
+ .max_age(std::time::Duration::from_secs(86400));
66
67
Ok(routes.into_axum_router().layer(cors))
68
}
0 commit comments