Know a great AI tool or AI news source? Submit it to AiByts
Roland Leth7 min read

CSRF in Next.js route handlers, without tokens

CSRF protection for Next.js route handlers without tokens: check Sec-Fetch-Site and Origin on every write, since SameSite=Lax lets sibling subdomains in.

By Roland LethContinuum Blog
CSRF in Next.js route handlers, without tokens

Read the full story

Originally published by Continuum Blog on Oct 27, 2026.

Read on Continuum Blog(opens in a new tab)

Comments

Sign in to join the discussion.

No comments yet — be the first to share your thoughts.