Skip to content

Commit 909221b

Browse files
authored
Merge pull request #261 from espensgr/patch-1
Update 3.crossOriginEmbedderPolicy.md
2 parents abc860d + 2ad809a commit 909221b

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

docs/content/1.documentation/2.headers/3.crossOriginEmbedderPolicy.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ Cross-Origin-Embedder-Policy: require-corp
5353
The `crossOriginEmbedderPolicy` header can be configured with following values.
5454

5555
```ts
56-
crossOriginEmbedderPolicy: 'unsafe-none' | 'require-corp' | false;
56+
crossOriginEmbedderPolicy: 'unsafe-none' | 'require-corp' | 'credentialless' | false;
5757
```
5858

5959
### `unsafe-none`
@@ -64,6 +64,10 @@ This is the default value. Allows the document to fetch cross-origin resources w
6464

6565
A document can only load resources from the same origin, or resources explicitly marked as loadable from another origin. If a cross origin resource supports CORS, the crossorigin attribute or the Cross-Origin-Resource-Policy header must be used to load it without being blocked by COEP.
6666

67+
### `credentialless`
68+
69+
no-cors cross-origin requests are sent without credentials. In particular, it means Cookies are omitted from the request, and ignored from the response. The responses are allowed **without** an explicit permission via the Cross-Origin-Resource-Policy header. Navigate responses behave similarly as the require-corp mode: They require Cross-Origin-Resource-Policy response header.
70+
6771
::alert{type="warning"}
6872
⚠️ Read more about `Avoiding blockage with CORS` [here](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Cross-Origin-Embedder-Policy#avoiding_coep_blockage_with_cors).
6973
::

src/types/headers.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ export type CrossOriginResourcePolicyValue = 'same-site' | 'same-origin' | 'cros
22

33
export type CrossOriginOpenerPolicyValue = 'unsafe-none' | 'same-origin-allow-popups' | 'same-origin';
44

5-
export type CrossOriginEmbedderPolicyValue = 'unsafe-none' | 'require-corp';
5+
export type CrossOriginEmbedderPolicyValue = 'unsafe-none' | 'require-corp' | 'credentialless';
66

77
export type ReferrerPolicyValue =
88
| 'no-referrer'

0 commit comments

Comments
 (0)