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

Read the full story
Originally published by Continuum Blog on Oct 27, 2026.
Comments
Sign in to join the discussion.