Skip to main content
setProxyUrl(proxyUrl?)
This is part of the Advanced Firewall Control add-on. Contact Sales to enable this feature.
Updates or clears the proxyUrl setting at runtime. Use this when participants are behind firewall policies that block direct access to Daily’s web domains — the proxy server forwards Daily’s HTTPS and WebSocket connections on their behalf. The proxyUrl is intended to be set at call creation time via createFrame() or createCallObject(). Use setProxyUrl() to change or clear it dynamically.

Parameters

proxyUrl
string
The URL of your proxy server. If omitted or empty, the proxy setting is cleared and connections go directly to Daily.

Return value

Returns this for chaining.

Proxy requirements

The proxy server must forward HTTPS connections to:
  • https://prod-ks.pluot.blue/*
  • https://c.daily.co/*
  • https://gs.daily.co/*
It must also proxy HTTPS-to-WebSocket upgrades for *.wss.daily.co and *-wss.daily.co. Proxying all of *.daily.co is recommended if possible.
The URLs above are subject to change in future releases of daily-js.

Examples

// Set at call creation time
const call = Daily.createFrame({
  dailyConfig: {
    proxyUrl: 'https://my-proxy-server:8080',
  },
});

// Update at runtime
call.setProxyUrl('https://my-proxy-server:8080');

// Clear the proxy setting
call.setProxyUrl();

See also