ThemeParks.wiki Parks API - v2.0.0
    Preparing search index...

    Function redactUrlSecrets

    • Redact the credentials a request URL carries before it appears in a log line or an error message: the proxy secrets of redactProxyUrlSecrets(), then every query parameter whose name ends in key, token, secret, password, signature or auth, or is sig, whatever its case. Each matching value becomes ***. A url parameter that holds another URL, such as a scraping proxy's target, is redacted the same way. A URL without such parameters, or a string that is not a URL, is returned unchanged.

      Parameters

      • rawUrl: string

      Returns string