← Quiz: Security and JWT: all 10 questions
Quiz: Security and JWT · Question 3 of 10
Why is CSRF protection disabled in this API?
Why is CSRF protection disabled in this API?
- A.CSRF only affects GET requests
- B.The API uses Bearer tokens in a header, not cookies, so browsers don't attach credentials automatically
- C.Spring Boot 4 removed CSRF protection
- D.JWTs are encrypted
Answer & explanation
Correct answer: The API uses Bearer tokens in a header, not cookies, so browsers don't attach credentials automatically
CSRF exploits cookies the browser sends on its own.
Can you get the rest right without peeking?
Take the timed Quiz: Security and JWT quiz free. Pass it to earn XP and count towards your certificate.
Start the quiz →