Skip to content

Commit

Permalink
Merge pull request #543 from DamianGlowala/docs/coop
Browse files Browse the repository at this point in the history
docs: mention correct default value for COOP
  • Loading branch information
Baroshem authored Nov 4, 2024
2 parents f7d989c + affd237 commit 4ded487
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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.

0 comments on commit 4ded487

Please sign in to comment.