Cross-Origin-Opener-Policy
Cross-Origin-Opener-Policy (COOP) is an HTTP response header that decides if a top-level page keeps a link to windows on other origins. When COOP cuts the link, window.opener is null and the two windows cannot reach each other.
Also called COOP
Updated
On this page
Example
Cross-Origin-Opener-Policy: same-origin-allow-popups
Cross-origin pages that open this page lose their link to it. A pop-up that this page opens, and that sends no COOP header, can still use window.opener.
How to set it
Send the header from the top-level page. Use same-origin for the strongest isolation. Use same-origin-allow-popups when the page opens sign-in or payment pop-ups.
Cross-Origin-Opener-Policy: same-origin
With same-origin, a sign-in pop-up on another origin loses window.opener and cannot send the result back. Use same-origin-allow-popups on pages that open such pop-ups.