CSRF and CORS
Learn CSRF and CORS (Spring Security, Spring Boot) with worked examples, diagrams and interview questions. Free on JavaSchoolLab.
Two Browser Protections That Are Often Confused An origin is scheme + host + port. https://app.shop.com and https://api.shop.com are different origins.
More lessons in Spring Security
- Spring Boot Security Basics
- How Spring Security Authenticates
- SecurityFilterChain: Securing URLs
- Users and Passwords (BCrypt)
- Roles, Authorities and RBAC
- Method-Level Security
- Spring Security - Hands-On Setup
- JWT Authentication
- OAuth 2.0, OpenID Connect and Social Login
- Security Errors and API Hardening
- Mini Project: Role-based API Security (Basic Auth)