Skip to content

CHILI GraFx Environment API: Exclude headers from connector proxy requests

CHILI GraFx icon

✨ New & Improved

Exclude specific headers from connector proxy requests

When a connector calls an external system, CHILI GraFx routes the request through a server-side proxy that forwards your request headers — including the connector's Authorization header — on to that system. This is usually what you want, but some upstreams hand back pre-signed URLs (for example a CDN link that already carries its own authentication in the query string). Forwarding the connector's Authorization header to those URLs can cause the request to be rejected, so the asset fails to load.

You can now tell the proxy to drop specific headers on a per-request basis using the new X-GraFx-Proxy-Exclude-Headers request header. Provide a comma-separated list of header names, and those headers are removed from the outbound request before it reaches the external system. Header names are matched case-insensitively, surrounding whitespace is trimmed, and the X-GraFx-Proxy-Exclude-Headers header itself is never forwarded.

For example, to stop the connector's Authorization header from being sent to a pre-signed CDN URL:

X-GraFx-Proxy-Exclude-Headers: Authorization

This is supported on both the GET and POST connector proxy requests. It makes connectors that rely on pre-signed media URLs — such as the Aprimo connector, which serves assets through time-limited signed URLs — work reliably, without the proxy interfering with the upstream's own authentication.

More info

Read more in the Developer Center