TomTom Maps for JavaScript
    Preparing search index...

    Function isProxyCredentialsMode

    • Whether the SDK is configured for a credentials proxy, such as the demos proxy.

      That is the case with no apiKey and a non-default commonBaseURL. The proxy injects the real key server-side from a cookie-gated session.

      In this mode, SDK requests attach credentials: 'include' so the proxy's session cookie travels with them. Otherwise, as with direct TomTom usage or a customer-owned proxy that keeps a real apiKey, credentials stay at the browser default. This keeps backends that respond with Access-Control-Allow-Origin: * working, since the browser rejects credentialed responses against a wildcard origin.

      An apiKey of undefined counts as unset, as '' does.

      Parameters

      • config: Partial<Pick<GlobalConfig, "apiKey" | "commonBaseURL">> = ...

        The config to inspect, by default the global TomTomConfig.

      Returns boolean