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

What does the same-origin policy block by default?

What does the same-origin policy block by default?

  1. A.Sending any request to another site
  2. B.JavaScript on one origin reading responses from another origin
  3. C.Loading images from a CDN
  4. D.Submitting forms
Answer & explanation

Correct answer: JavaScript on one origin reading responses from another origin

CORS headers let a server selectively allow such reads.

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 →