🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← 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?

  1. A.POST requests are never sent with cookies
  2. B.A page on another site can submit a POST form to your site automatically
  3. C.POST is always encrypted
  4. 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 →