The corsProxyUrl option controls which proxy Replay uses for cross-origin requests.
The corsProxyUrl setting is not available in Redoc Community Edition.
| Option | Type | Description |
|---|---|---|
corsProxyUrl | string | Optional. By default, Realm uses its internal proxy endpoint ( You can set it to empty string to disable the proxy to send requests directly from user browser to the target API. This requires the target API to have CORS enabled. |
When Replay uses a Redocly-hosted CORS proxy, requests are handled in this order:
- Replay sends the request from the browser to your Redocly project build-in CORS proxy endpoint (
/_api/cors/) or to the hosted CORS proxy endpoint (https://cors.redocly.com/). - The proxy sends the request to your target API and returns the response back to Replay.
The same outbound IP addresses are used by both the built-in proxy endpoint and the hosted proxy:
3.211.34.228
44.206.14.241
54.156.60.142If your API is accessible only through a private network or VPN, configure corsProxyUrl to point to a proxy that runs inside your own network.
Override the default proxy URL in your Redocly configuration file.
openapi:
corsProxyUrl: https://proxy.example.com/- OpenAPI configuration - Complete guide to OpenAPI configuration options for customizing API reference documentation
- OpenAPI Specification - Official OpenAPI Specification documentation for understanding API description standards
- OpenAPI visual reference - Visual guide to OpenAPI specification structure and CORS proxy configuration
- Configuration options - Explore other project configuration options for comprehensive documentation customization