Mastery Points
0

CSRF Protection in authentication

Context & Logic

CSRF (Cross-Site Request Forgery) tricks users into making unwanted requests to a site they're authenticated on. Prevention: use CSRF tokens, SameSite cookies, and verify the Origin header.