docs/content/reference/routing-configuration/http/middlewares/grpcweb.md
The grpcWeb middleware converts gRPC Web requests to HTTP/2 gRPC requests before forwarding them to the backends.
!!! tip
Please note, that Traefik needs to communicate using gRPC with the backends (h2c or HTTP/2 over TLS).
Check out [Exposing gRPC Services](../../../../expose/overview.md#exposing-grpc-services) for more details.
http:
middlewares:
test-grpcweb:
grpcWeb:
allowOrigins:
- "*"
[http.middlewares]
[http.middlewares.test-grpcweb.grpcWeb]
allowOrigins = ["*"]
labels:
- "traefik.http.middlewares.test-grpcweb.grpcweb.allowOrigins=*"
{
//...
"Tags" : [
"traefik.http.middlewares.test-grpcweb.grpcWeb.allowOrigins=*"
]
}
apiVersion: traefik.io/v1alpha1
kind: Middleware
metadata:
name: test-grpcweb
spec:
grpcWeb:
allowOrigins:
- "*"
| Field | Description | Default | Required |
|---|---|---|---|
<a id="opt-allowOrigins" href="#opt-allowOrigins" title="#opt-allowOrigins">allowOrigins</a> | List of allowed origins. | ||
A wildcard origin * can also be configured to match all requests. | |||
| More information here. | [] | No |
More information including how to use the settings can be found at: