bothy-sdk
    Preparing search index...

    Function requireSafeUrl

    • Refuses a clear-text URL that leaves the host: http and ws only for a loopback host (127.0.0.0/8, ::1, localhost), so a token never travels in clear text off the machine (docs/DECISIONS.md D-M2-29-3).

      Parameters

      • url: string

        A base URL or gateway URL.

      Returns void

      TypeError when the URL does not parse, its scheme is not http, https, ws or wss, or a clear-text scheme names another host.