From 8406e479d873aaa9c8b6f1548784a890d794b3cf Mon Sep 17 00:00:00 2001
From: Arthur Sonzogni To check Cross-Origin-Embedder-Policy allows credentials, given a
+request request, run theses steps:
+
+ If request's mode is not If request's client is null, return true. If request's client's embedder policy is not
+ " If request's origin is not same origin with
+ request's client's origin,
+ return true. Return false. A response has an associated request-include-credentials, which is
+initially set.
+
A response has an associated
timing allow passed flag, which is
initially unset.
@@ -3507,9 +3530,22 @@ Cross-Origin-Resource-Policy = %s"same-origin" / %s"same-site" / %s"cross-or
If policy is neither ` If policy is null and embedderPolicyValue is
- " If policy is null, switch on embedderPolicyValue:
+ Switch on policy:
@@ -4668,6 +4704,10 @@ steps. They return a response.
is true; otherwise false.
+ If Cross-Origin-Embedder-Policy allows credentials with
+ request is false, set includeCredentials to false. Let contentLength be httpRequest's body's
length, if httpRequest's body is non-null;
otherwise null.
@@ -5028,6 +5068,9 @@ steps. They return a response.
If httpRequest's header list contains
` Set response's request-include-credentials to
+ includeCredentials.
+
If response's status is 401, httpRequest's
response tainting is not " If policy is null, switch on embedderPolicyValue:
If request's origin is not same origin with
+ If request's origin is same origin with
request's client's origin,
return true.
+
no-cors
", return
+ true.credentialless
", return true.Responses
@@ -1978,6 +1997,10 @@ initially unset.
being provided to an API that didn't make a range request. See the flag's usage for a detailed
description of the attack.
+same-origin
`, `same-site
`, nor
`cross-origin
`, then set policy to null.
- require-corp
", then set policy to
- `same-origin
`.
+
+
+ same-origin
` if one of the
+ following is true:
+
+
+
+ opaque
".
+ same-origin
`.
+ Range
`, then set response's range-requested flag.
+ cors
", includeCredentials is
@@ -7843,6 +7886,7 @@ Arkadiusz Michalski,
Arne Johannessen,
Artem Skoretskiy,
Arthur Barstow,
+Arthur Sonzogni,
Asanka Herath,
Axel Rauschmayer,
Ben Kelly,
From c95a1e5e4229c1213abb81b9ddbf73da20ffaf3f Mon Sep 17 00:00:00 2001
From: Arthur Sonzogni
same-origin
` if one of the
following is true:
From ab4c380a2ed749f67e8fb3a8ca9768d307f38b13 Mon Sep 17 00:00:00 2001
From: Arthur Sonzogni same-origin
` if one of the
following is true:
-
From 55c97fa224b9237250efc8642c95159c3a006cbf Mon Sep 17 00:00:00 2001
From: Arthur Sonzogni opaque
".
+ credentialless
", return true.credentialless
", return true.
If request's origin is same origin with - request's client's origin, - return true.
+If request's client's origin is same origin with request's current URL's origin, return true.
Return false.
@@ -7887,7 +7887,7 @@ Arkadiusz Michalski, Arne Johannessen, Artem Skoretskiy, Arthur Barstow, -Arthur Sonzogni, +Arthur Sonzogni, , Asanka Herath, Axel Rauschmayer, Ben Kelly, From 5c9029418a02c88c89aa6b3353d5c3e373d0f17c Mon Sep 17 00:00:00 2001 From: Arthur Sonzognicredentialless
", return true.
- If request's client's origin is same origin with request's current URL's origin, return true.
+If request's origin is same origin + with request's current URL's origin, return true.
Return false.
From 4d8cb48bbdfb89c651cc131e63bb044ec33cd566 Mon Sep 17 00:00:00 2001 From: Arthur SonzogniTo check Cross-Origin-Embedder-Policy allows credentials, given a -request request, run theses steps: +
To check Cross-Origin-Embedder-Policy allows credentials, given a request request, run theses steps:
If request's mode is not no-cors
", return
@@ -1902,12 +1902,11 @@ source of security bugs. Please seek security review for features that deal with
If request's client is null, return true.
If request's client's embedder policy is not
- "credentialless
", return true.
credentialless
", return true.
- If request's origin is same origin - with request's current URL's origin, return true.
+If request's origin is same origin with + request's current URL's origin, return true.
Return false.
same-origin
` if one of the
- following is true:
+ same-origin
` if one of the following is true:
is true; otherwise false. -
If Cross-Origin-Embedder-Policy allows credentials with - request is false, set includeCredentials to false.
+If Cross-Origin-Embedder-Policy allows credentials with request is + false, set includeCredentials to false.
Let contentLength be httpRequest's body's
length, if httpRequest's body is non-null;
From a7b9b13ace675abaaedd0a74b2bfabe6603fc4f0 Mon Sep 17 00:00:00 2001
From: Arthur Sonzogni If request's client is null, return true. If request's client's embedder policy is not "credentialless
", return true.credentialless
", return true.
If request's origin is same origin with request's current URL's origin, return true.
@@ -1997,8 +1997,8 @@ being provided to an API that didn't make a range request. See the flag's usage description of the attack.A response has an associated request-include-credentials, which is -initially set. +id=concept-response-request-include-credentials>request-include-credentials (a boolean), which +is initially true.
A response has an associated timing allow passed flag, which is @@ -4703,7 +4703,7 @@ steps. They return a response.
is true; otherwise false. -
If Cross-Origin-Embedder-Policy allows credentials with request is +
If Cross-Origin-Embedder-Policy allows credentials with request returns false, set includeCredentials to false.
Let contentLength be httpRequest's body's
From 7678aa6c9f3520875e24bd9e2cf1136f08bf0c7c Mon Sep 17 00:00:00 2001
From: Arthur Sonzogni To check Cross-Origin-Embedder-Policy allows credentials, given a request request, run theses steps:
+ To check Cross-Origin-Embedder-Policy allows credentials, given a
+request request, run theses steps:
If request's mode is not A response has an associated request-include-credentials (a boolean), which
-is initially true.
+ A response has an associated
+request-include-credentials
+(a boolean), which is initially true.
A response has an associated
timing allow passed flag, which is
From 2868bcdd7253c9ce9ec55037eb38a0218f1fb84b Mon Sep 17 00:00:00 2001
From: Arthur Sonzogni If request's client is null, return true. If request's client's embedder policy is not
- " If request's client's embedder policy
+ is not " If request's origin is same origin with
request's current URL's origin, return true. If policy is neither ` If policy is null, switch on embedderPolicyValue:
+ If policy is null, switch on embedderPolicyValue: If request's origin is same origin with
- request's current URL's origin, return true.
no-cors
", return
@@ -1996,9 +1996,9 @@ initially unset.
being provided to an API that didn't make a range request. See the flag's usage for a detailed
description of the attack.
-credentialless
", return true.credentialless
", return true.same-origin
`, `same-site
`, nor
`cross-origin
`, then set policy to null.
-
credentialless
", return true.
Return false.
From 3c486868fe1dfacbfefe88992856b106a80c9474 Mon Sep 17 00:00:00 2001 From: Arthur SonzogniIf request's client is null, return true.
-If request's client's embedder policy
- is not "credentialless
", return true.
If request's client's
+ policy container's
+ embedder policy is not
+ "credentialless
", return true.
If request's origin is same origin with
request's current URL's origin and
From 89aaca1fdd377c5b10133cceb56a100ca618fd27 Mon Sep 17 00:00:00 2001
From: Arthur Sonzogni If request's mode is not If request's mode is not If request's client is null, return true. If request's client's
policy container's
- embedder policy is not
+ embedder policy's
+ value is not
" If request's origin is same origin with
@@ -3535,17 +3536,18 @@ Cross-Origin-Resource-Policy = %s"same-origin" / %s"same-site" / %s"cross-or
If policy is null, switch on embedderPolicyValue: Do nothing.
Set policy to ` Set policy to ` is true; otherwise false.
If Cross-Origin-Embedder-Policy allows credentials with request returns
- false, set includeCredentials to false.
-
no-cors
", return
+ no-cors
", then return
true.credentialless
", return true.
same-origin
` if one of the following is true:
-
-
+ same-origin
` if one of the following is true:
+
+
same-origin
`.
+ same-origin
`.
Let contentLength be httpRequest's body's
length, if httpRequest's body is non-null;
From 63cbf5659bbf7d977e95eab0bf74ef082612b08a Mon Sep 17 00:00:00 2001
From: ArthurSonzogni To check Cross-Origin-Embedder-Policy allows credentials, given a
-request request, run theses steps:
+request request, run these steps:
If request's mode is not If policy is null, switch on embedderPolicyValue: Do nothing.
- Set policy to ` Set policy to ` is true; otherwise false.
If Cross-Origin-Embedder-Policy allows credentials with request returns
- false, then set includeCredentials to false. Let contentLength be httpRequest's body's
length, if httpRequest's body is non-null;
@@ -7889,7 +7889,7 @@ Arkadiusz Michalski,
Arne Johannessen,
Artem Skoretskiy,
Arthur Barstow,
-Arthur Sonzogni, ,
+Arthur Sonzogni,
Asanka Herath,
Axel Rauschmayer,
Ben Kelly,
From 3eb0723249e1452bb2769fafc663d0d1fb6b284b Mon Sep 17 00:00:00 2001
From: Anne van Kesteren To check Cross-Origin-Embedder-Policy allows credentials, given a
+ To check if Cross-Origin-Embedder-Policy allows credentials, given a
request request, run these steps:
If request's mode is not If request's client is null, return true. If request's client is null, then return true. If request's client's
policy container's
- embedder policy's
- value is not
- "
-no-cors
", then return
@@ -3535,10 +3535,10 @@ Cross-Origin-Resource-Policy = %s"same-origin" / %s"same-site" / %s"cross-or
-
same-origin
` if one of the following is true:
@@ -3546,7 +3546,7 @@ Cross-Origin-Resource-Policy = %s"same-origin" / %s"same-site" / %s"cross-or
- same-origin
`.
no-cors
", then return
true.credentialless
", return true.credentialless
", then return true.
If request's origin is same origin with request's current URL's origin and - request's tainted origin flag is not set, return true.
+ request's tainted origin flag is not set, then return true.Return false.
+The result of fetch is a @@ -1999,8 +1999,7 @@ initially unset. being provided to an API that didn't make a range request. See the flag's usage for a detailed description of the attack. -
A response has an associated -request-include-credentials +
A response has an associated request-includes-credentials (a boolean), which is initially true.
A response has an associated @@ -3481,7 +3480,7 @@ Cross-Origin-Resource-Policy = %s"same-origin" / %s"same-site" / %s"cross-or
If the cross-origin resource policy internal check with origin,
- "unsafe-none
", response, and
+ "unsafe-none
", response, and
forNavigation returns blocked, then return blocked.
This step is needed because we don't want to report violations not related to @@ -3516,7 +3515,7 @@ Cross-Origin-Resource-Policy = %s"same-origin" / %s"same-site" / %s"cross-or
If forNavigation is true and embedderPolicyValue is
- "unsafe-none
", then return allowed.
+ "unsafe-none
", then return allowed.
Let policy be the result of getting @@ -3525,7 +3524,7 @@ Cross-Origin-Resource-Policy = %s"same-origin" / %s"same-site" / %s"cross-or
This means that `Cross-Origin-Resource-Policy: same-site, same-origin
`
ends up as allowed below as it will never match anything, as long as
- embedderPolicyValue is "unsafe-none
".
+ embedderPolicyValue is "unsafe-none
".
Two or more `Cross-Origin-Resource-Policy
` headers will have the
same effect.
@@ -3533,20 +3532,22 @@ Cross-Origin-Resource-Policy = %s"same-origin" / %s"same-site" / %s"cross-or
`cross-origin
`, then set policy to null.
If policy is null, switch on embedderPolicyValue:
+If policy is null, then switch on embedderPolicyValue:
+unsafe-none
"
Do nothing. -
credentialless
"
Set policy to `same-origin
` if one of the following is true:
+
Set policy to `same-origin
` if:
+
require-corp
"
Set policy to `same-origin
`.
If httpRequest's header list contains
`Range
`, then set response's range-requested flag.
-
Set response's request-include-credentials to +
Set response's request-includes-credentials to includeCredentials.