SpinTheMic
Pro

Explain it in 60 seconds

The same-origin policy

Frontend Engineering · Async JavaScript and the Browser · Intermediate

What is the same-origin policy, and what does it protect?

What a strong answer covers

Your AI report card counts how many of these ideas you cover.

  • Origin = scheme + host + port.
  • Scripts can't read cross-origin responses/DOM.
  • Protects user data on other sites.
  • Exceptions: CORS, postMessage, embeds.
  • Sending vs reading distinction.
Practise this topic

Start without signing up. Sign in free to get an AI report card on your answer.

See all topics