← Quiz: CSRF and CORS: all 10 questions
Quiz: CSRF and CORS · Question 7 of 10
"Our form uses POST, so we are safe from CSRF." Why is this wrong?
"Our form uses POST, so we are safe from CSRF." Why is this wrong?
- A.POST requests are never sent with cookies
- B.A page on another site can submit a POST form to your site automatically
- C.POST is always encrypted
- D.CSRF only affects APIs
Answer & explanation
Correct answer: A page on another site can submit a POST form to your site automatically
POST alone is not a defence; use SameSite cookies and CSRF tokens.
Can you get the rest right without peeking?
Take the timed Quiz: CSRF and CORS quiz free. Pass it to earn XP and count towards your certificate.
Start the quiz →