← 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?
- A.The evil origin with credentials
- B.An empty dictionary (no CORS headers)
- C.Access-Control-Allow-Origin: *
- 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 →