Skip to main content

gRPC Web Configuration

The grpc-web plugin enables the gateway to handle gRPC-Web requests from browsers and JavaScript clients by translating them into standard gRPC calls and forwarding them to upstream gRPC services. Configuration covers plugin parameters.

Parameters​

See plugin common configurations for configuration options available to all plugins.

  • cors_allow_headers

    string

    default: content-type,x-grpc-web,x-user-agent


    Comma-separated list of request headers allowed for cross-origin requests.

  • max_req_body_size

    integer

    default: 67108864

    valid value:

    greater than or equal to 1

    Maximum request body size in bytes read for gRPC-Web processing. A larger body is rejected with 400 Bad Request. Introduced in API7 Enterprise 3.9.17 and 3.10.4, and APISIX 3.18.0.