kinetex - v1.0.0-rc.1
    Preparing search index...

    Function isSafeURL

    • Validate a URL for safety.

      Parameters

      • url: string | URL

        URL to validate

      • allowedSchemes: string[] = ...

        Allowed URL schemes

      Returns boolean

      True if URL is safe