From affd23727e412f6a2724f3104516ef1509236c40 Mon Sep 17 00:00:00 2001 From: Damian Glowala Date: Fri, 1 Nov 2024 08:41:09 +0100 Subject: [PATCH] docs: mention correct default value for COOP --- .../2.headers/4.crossOriginOpenerPolicy.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/content/1.documentation/2.headers/4.crossOriginOpenerPolicy.md b/docs/content/1.documentation/2.headers/4.crossOriginOpenerPolicy.md index 3b36d1f2..9cd53087 100644 --- a/docs/content/1.documentation/2.headers/4.crossOriginOpenerPolicy.md +++ b/docs/content/1.documentation/2.headers/4.crossOriginOpenerPolicy.md @@ -55,17 +55,17 @@ Cross-Origin-Opener-Policy: same-origin The `crossOriginOpenerPolicy` header can be configured with following values. ```ts -crossOriginOpenerPolicy: 'unsafe-none' | 'same-origin-allow-popups' | 'same-origin' | false +crossOriginOpenerPolicy: 'same-origin' | 'same-origin-allow-popups' | 'unsafe-none' | false ``` -### `unsafe-none` +### `same-origin` -This is the default value. Allows the document to be added to its opener's browsing context group unless the opener itself has a COOP of same-origin or same-origin-allow-popups. +This is the default value. Isolates the browsing context exclusively to same-origin documents. Cross-origin documents are not loaded in the same browsing context. ### `same-origin-allow-popups` Retains references to newly opened windows or tabs that either don't set COOP or that opt out of isolation by setting a COOP of unsafe-none. -### `same-origin` +### `unsafe-none` -Isolates the browsing context exclusively to same-origin documents. Cross-origin documents are not loaded in the same browsing context. +Allows the document to be added to its opener's browsing context group unless the opener itself has a COOP of same-origin or same-origin-allow-popups.