Nginx example
Create one exact location per supported path:/biqli/api/v1/track/lead/client/biqli/api/v1/track/sale/client
Required security properties
- Use exact paths and a fixed upstream.
- Never accept an upstream host or URL from a header, query, or body.
- Allow only
POSTandOPTIONS. - Limit request bodies to 32 KB.
- Preserve
Authorization,Content-Type,Idempotency-Key, andX-Biq-*headers. - Preserve the original browser
Originheader. - Strip cookies and proxy-override headers.
- Do not follow redirects to a different upstream.
- Add edge rate limits in addition to Biqli’s limits.
Origin is essential. Biqli checks it against the workspace’s saved allowed hostnames. Replacing it with the proxy hostname would break that security boundary.
A reverse proxy must remain a narrow transport path. It must never become a general-purpose relay to arbitrary Biqli or third-party URLs.

