Skip to content

isSecureApiBase

isSecureApiBase(apiBase): boolean

Defined in: safeUrl.ts:84

Is this apiBase allowed to carry SDK traffic?

Production traffic is https: only — an http: apiBase sends campaign configuration and context over a channel any middlebox can rewrite, which is S-4 with extra steps. The one exception is loopback (http://localhost, http://127.0.0.1, any port), because local development against a dev edge is a real and legitimate setup.

string

boolean