← Quiz: CSRF and CORS: all 10 questions
Quiz: CSRF and CORS · Question 2 of 10
Which statement about CORS is true?
Which statement about CORS is true?
- A.CORS stops CSRF attacks
- B.CORS stops curl from calling your API
- C.CORS lets a server allow specific other origins to read its responses in the browser
- D.CORS encrypts API traffic
Answer & explanation
Correct answer: CORS lets a server allow specific other origins to read its responses in the browser
CORS relaxes the browser's same-origin policy for chosen origins. It doesn't restrict non-browser clients or stop forged form posts.
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 →