Vercel
Vercel logoVercel · Feature trail

CSRF Protection

3 posts · Sep 2023 – Oct 2023

What this trail covers

Vercel provides guidance on preventing CSRF attacks through anti-CSRF tokens, SameSite cookie attributes, Referer header checks, and the proper use of HTTP methods (GET for retrieval, POST for state changes). This ensures robust security for web applications by mitigating unauthorized actions performed on behalf of authenticated users. The SameSite attribute dictates when and how cookies are sent in cross-site requests, with options for Strict, Lax, and None, where None requires the Secure attribute.

All Vercel trails