← 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?
- A.Sending any request to another site
- B.JavaScript on one origin reading responses from another origin
- C.Loading images from a CDN
- 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 →