Hacker News new | ask | show | jobs
by jaffathecake 113 days ago
fwiw, if you serve your page with:

Content-Security-Policy: require-trusted-types-for 'script'

…then it blocks you from passing regular strings to the methods that don't sanitize.