Skip to content
uencoder

Cross-Origin

Cross-origin refers to any origin differing in protocol, host, or port; the same-origin policy restricts cross-origin script interoperation.

Purpose

To understand the cross-origin boundary and same-origin policy restrictions, the foundation of Web security and CORS/COEP/COOP.

Mechanism

Origin = (protocol, host, port). Cross-origin scripts cannot read or write another origin DOM/cookies/storage; they can send cross-origin requests but reading responses is restricted by CORS. img/script/link can load cross-origin but with restricted reads.

Use cases

  • Web security foundation
  • CORS understanding
  • Cross-origin isolation

Related tools

References