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

Which statement about CORS is true?

Which statement about CORS is true?

  1. A.CORS stops CSRF attacks
  2. B.CORS stops curl from calling your API
  3. C.CORS lets a server allow specific other origins to read its responses in the browser
  4. 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 →