# `corsProxyUrl`

The `corsProxyUrl` option controls which proxy Replay uses for cross-origin GraphQL requests.

**Early access**

This is a feature in early access.
It may not be available for your organization yet, and its behavior may change before general availability.

To request access to this feature, contact our [Support team](mailto:team@redocly.com).

The **code** corsProxyUrl  is not available in Redoc Community Edition.

## Options

| Option | Type | Description |
| --- | --- | --- |
| corsProxyUrl | string | Optional. Set this option to override the proxy URL (for example, to use your own external proxy service). You can set it to empty string to disable the proxy and send requests directly from user browser to the target GraphQL API. Sending requests directly requires the target GraphQL API to have CORS enabled. Default: `/_api/cors/` (Realm's internal proxy endpoint). |

## Request flow and network requirements

When Replay uses a Redocly-hosted CORS proxy, each request follows these steps:

1. Replay sends the request from the browser to your Redocly project built-in CORS proxy endpoint (`/_api/cors/`) or to the hosted CORS proxy endpoint (`https://cors.redocly.com/`).
2. The proxy sends the request to your target API and returns the response back to Replay.

To allow requests from the built-in proxy endpoint and the hosted proxy, add these IP addresses to your API's allowlist:

```sh
3.211.34.228
44.206.14.241
54.156.60.142
```

If your API is accessible only through a private network or VPN, configure `corsProxyUrl` to point to a proxy that runs inside your own network.

## Examples

### Override the default proxy URL

Add a full URL to an external proxy service:

```yaml
graphql:
  corsProxyUrl: https://proxy.example.com/
```

### Disable CORS proxy

Add an empty string to disable the built-in CORS proxy:

```yaml
graphql:
  corsProxyUrl: ""
```

## Resources

- **[GraphQL configuration](/docs/platform/config/graphql)** - Complete guide to GraphQL configuration options for customizing API reference documentation
- **[GraphQL](https://graphql.org/)** - Official GraphQL specification and documentation for understanding query language fundamentals
- **[OpenAPI corsProxyUrl](/docs/platform/config/openapi/cors-proxy-url)** - The same option for OpenAPI reference documentation
- **[Configuration options](/docs/platform/config)** - Explore other project configuration options for comprehensive documentation customization
