New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cors issue #1636
Comments
Same issue. My Grpc-web setup with cors was working fine before upgrading to Server::builder()
.accept_http1(true)
.layer(CorsLayer::new())
.layer(GrpcWebLayer::new())
.add_service(reflection_service)
.serve(address)
.await
My error: error[E0277]: the trait bound `Cors<GrpcWebService<Routes>>: tonic::codegen::Service<request::Request<toni
c::transport::Body>>` is not satisfied
--> src\launch\launch_server.rs:164:10
|
164 | .serve(address)
| ^^^^^ the trait `tonic::codegen::Service<request::Request<tonic::transport::Body>>` is not
implemented for `Cors<GrpcWebService<Routes>>`
|
= help: the trait `tonic::codegen::Service<http::request::Request<ReqBody>>` is implemented for `Cors<
S>` I look at #1320 several times, but the examples simply don't work with 11.0. |
I found the issue: Downgrading |
I think is same as this issue: #1678 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Bug Report
Version
Platform
Darwin mbp-1.home 23.3.0 Darwin Kernel Version 23.3.0: Wed Dec 20 21:31:10 PST 2023; root:xnu-10002.81.5~7/RELEASE_ARM64_T6031 arm64
Description
I tried this code:
I expected to see this happen: should build
Instead, this happened:
The text was updated successfully, but these errors were encountered: