Knowledge Base

Cross-Origin-Opener-Policy (COOP)

COOP controls how a top-level document shares its browsing context group with other documents. It can isolate windows, but may affect intentional popup workflows.

A boundary between windows

Browsers use browsing context groups to connect documents and windows. COOP can separate a page from cross-origin openers or opened windows, changing whether scripts can keep a usable window reference.

It does not authorize reading an API response or control which images a page loads. Those are separate CORS and embedding questions.

Choose around the popup flow

Cross-Origin-Opener-Policy: same-origin

same-origin provides a strict group boundary with compatible same-origin documents. The default unsafe-none leaves ordinary grouping behavior. same-origin-allow-popups can support certain integrations that intentionally open less isolated popup documents.

Do not select a value from a checklist without testing login, payment, and OAuth popups. Group changes can sever a reference the integration expects to use.

Cross-origin isolation is a separate goal

A compatible COOP policy and a suitable COEP policy can establish cross-origin isolation in a secure context, subject to browser and permission requirements. Check window.crossOriginIsolated in the actual application.

A site that does not need isolated browser APIs may correctly omit COOP. Start with the required browser feature and test its full workflow before deployment.

Technical sources

Copyright ©2026 MILAN INNOVATIONS LLC. All rights reserved.