# Next.js proxy routes

Proxy routes avoid browser CORS issues. They also hide third-party API keys.

### Chat proxy

* Receives browser chat messages.
* Forwards them to the backend agent endpoint.

### Market data proxy

* `GET /api/prices/simple`
* `GET /api/prices/markets`
* `GET /api/prices/chart/:id`

{% hint style="warning" %}
Do not proxy route-provider traffic through the frontend. Keep routing and execution inside the backend.
{% endhint %}
