Cross-origin isolation
Cross-origin isolation is a state a page gets when it sends two headers, COOP and COEP. The browser then lets the page use powerful features, such as SharedArrayBuffer.
Concept
Also called crossOriginIsolated
Updated
On this page
Example
HTTP response headers
Cross-Origin-Opener-Policy: same-origin Cross-Origin-Embedder-Policy: require-corp
Check the result in JavaScript with self.crossOriginIsolated. It is true when the page is isolated.
How to set it
Send both headers on the top page. Each cross-origin iframe on it must agree to load there.
Cross-Origin-Opener-Policy: same-origin Cross-Origin-Embedder-Policy: require-corp
Add allow="cross-origin-isolated" only when the framed page needs the isolated features itself.
Learn more
Sources