🎙 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 5 of 10

What does corsheadersgood return for https://evil.example?

What does cors_headers_good return for https://evil.example?

  1. A.The evil origin with credentials
  2. B.An empty dictionary (no CORS headers)
  3. C.Access-Control-Allow-Origin: *
  4. D.An error
Answer & explanation

Correct answer: An empty dictionary (no CORS headers)

The origin isn't in the allow-list, so no headers are sent and the browser blocks the page from reading the response.

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 →