PrepZone Logo
PrepZone
Back to Spring Boot

Spring Boot · Medium

What is CSRF protection? How does Spring Security handle it?

Spring BootSpring SecurityWeb SecuritySeniorStaff

Answer preview

CSRF (Cross-Site Request Forgery) is an attack where a malicious site tricks an authenticated user's browser into making unwanted requests to a trusted site. Because the browser automatically includes session cookies, the server accepts the forged request.…