Configure proxy URLs for client-side requests in the Client SDK, enabling advanced deployment scenarios without frontend code changes.
Setup:
const client = createClient({
proxyUrl: '/api/frontic' // All requests route through your proxy
})
Use cases:
- CORS prevention - Route through your domain
- CDN edge functions - Cache at the edge
- API gateways - Centralized request handling
- Geographic routing - Region-specific endpoints
The original target URL is passed in the fs-target-url header for your proxy to forward. Configure globally or override per-request for flexibility.