Skip to content

6.0.3

Compare
Choose a tag to compare
@melloware melloware released this 12 Jan 13:58
· 141 commits to main since this release

Added Sanitizing URL to the TrustedTypes check.

window.trustedTypes.createPolicy('default', {
        createHTML: (string) => DOMPurify.sanitize(string, {RETURN_TRUSTED_TYPE: true}),
        createScriptURL: string => sanitizeUrl(string),
        createScript: string => string // allow scripts
    });