Embedding cross-origin content
Attempting to embed an image without a Cross-Origin-Resource-Policy header
COEP requires every cross-origin resource on your page to explicitly opt in via a
Cross-Origin-Resource-Policy: cross-origin header. Resources that don't
opt in are blocked entirely. This closes the door on Spectre-style attacks that exploit
shared memory between origins.
Cross-origin window access
Can a page that opens this site read back its window reference?
window.open() retains a reference to this window and can interact
with it — including reading properties and navigating it.
Without COOP, a malicious page that tricks a user into clicking a link (or opens this
page programmatically) retains a JS reference to this window via window.opener.
It can navigate this page, time operations using performance APIs, or
exploit Spectre to read memory. COOP forces a new browsing context, severing that link.