upleveled / security-vulnerability-examples-next-js-postgres

Home Page:https://vuln-examples-next-postgres-jose.vercel.app/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add Solution 3 using TrustedHTML to XSS Example

dschwarz91 opened this issue · comments

Add a third solution for Example 6 - XSS, add an example of using Trusted Types / TrustedHTML to sanitize the untrusted data

At a first try I couldn't manage to activate it for a single page before the XSS payload got executed, see this comment: