setProxyUrl()

setProxyUrl(string)

Compatibility:
Prebuilt
Custom

This is part of the Advanced Firewall Control add-on. Please contact Sales to enable this functionality.

For users whose firewall policies prevent them from directly accessing Daily’s web domains, proxyUrl and setProxyUrl() provide a mechanism to send connections to Daily's HTTPS and WebSocket endpoints to a specified proxy server instead.

setProxyUrl() is used to change or remove the proxyUrl setting.

Usage

setProxyUrl() takes a string argument, proxyUrl. If empty or undefined, the proxyUrl property is cleared.

Example:

Example:

The property is intended to be set during createFrame(). Example:

Proxy requirements

The proxy server must proxy HTTPS connections to:

It must also proxy HTTPS connections converting to WebSockets on *.wss.daily.co. If possible, proxying on *.daily.co is best.

Note: the URLs listed here are subject to change in subsequent releases of daily-js.