• Rewrite URL to deal with CORS issues, HTTPS issues, or similar issues.

    Parameters

    • url: string

      The URL to be rewritten.

    • rwmode: URLRewriteMode

      URLRewriteMode Either AsIfAbsolute or OriginRelative. AsIfAbsolute if the input URL should be treated as an absolute URL. OriginRelative if the input URL is relative to the browser origin.

    Returns string

    The new URL.

Generated using TypeDoc