What is Same-origin policy?
A browser rule that restricts scripts on a page loaded from one origin from reading the contents of resources from another origin. An origin is the combination of scheme, host name and port number, and two URLs have the same origin only when all three match. It prevents a malicious page's script from reading information from other sites where the user is logged in. Embedding, such as loading images or scripts, is allowed; when a page needs to read responses from another origin, CORS, which is based on the server's permission, is used.
Japanese name: 同一オリジンポリシー
Same-origin policy appears in 2 practice questions across 1 topic, including Web Technology Basics.
Field: Web Technology Basics