
XSS still starts when untrusted HTML reaches the browser
Encode by context, then enforce Trusted Types. The hatch is still innerHTML, v-html, and dangerouslySetInnerHTML.
Read articleBlog
Actionable insights on secure coding, reviews, and the defenses that still hold after the framework defaults.

Encode by context, then enforce Trusted Types. The hatch is still innerHTML, v-html, and dangerouslySetInnerHTML.
Read articleCookie session first. JWT only when a third party must verify the token.
Authorize the object, do not trust the id in the URL.
Bind parameters. Do not concatenate untrusted input into a query.
Sec-Fetch-Site first, SameSite as a belt, token for login and old clients.
Encode by context, then enforce Trusted Types. The hatch is still innerHTML.