Cross-Origin-Embedder-Policy
Cross-Origin-Embedder-Policy (COEP) is an HTTP response header that controls which cross-origin resources a page may load. With require-corp, each cross-origin resource must allow the load with CORS or a Cross-Origin-Resource-Policy header.
Also called COEP
Updated
On this page
Example
Cross-Origin-Embedder-Policy: require-corp Cross-Origin-Opener-Policy: same-origin
Together, these two headers make the page cross-origin isolated. Read window.crossOriginIsolated in a script to check it.
How to set it
Send COEP from the page that loads the content. Each cross-origin page you put in a frame must also opt in, as the last tab shows.
Cross-Origin-Embedder-Policy: require-corp
The browser blocks a cross-origin frame that does not send these headers. The credentialless attribute on the iframe lifts this rule. The frame then loads in a new context, without its cookies and storage.