New blog post: Perfect types with `setHTML()` - https://frederikbraun.de/perfect-types-with-sethtml.html - TLDR: Use require-trusted-types-for 'script'; trusted-types 'none'; in your CSP and nothing besides setHTML() works, essentially removing all DOM-XSS risks....
Perfect types with `setHTML()`

Perfect types with `setHTML()`

Frederik Braun
@freddy Nice. I have updated the CSP for https://www.grepular.com/ with this
@grepular nice!