diff --git a/fetch.bs b/fetch.bs index 30dceaceb..82c2bc392 100644 --- a/fetch.bs +++ b/fetch.bs @@ -1870,6 +1870,25 @@ source of security bugs. Please seek security review for features that deal with exclude fragment set to true. +

To check Cross-Origin-Embedder-Policy allows credentials, given a +request request, run theses steps: + +

    +
  1. If request's mode is not no-cors", return + false.

    + +
  2. If request's client is null, return false.

    + +
  3. If request's client's embedder policy is not "cors-or-credentialless", return false.

    + +
  4. If request's origin is not same origin with + request's client's origin, + return false.

    + +
  5. Return true.

    +

Responses

@@ -3399,6 +3418,10 @@ Cross-Origin-Resource-Policy = %s"same-origin" / %s"same-site" / %s"cross-or "require-corp", then set policy to `same-origin`. +
  • If policy is null, embedderPolicyValue is + "cors-or-credentialless", and + forNavigation is true, then set policy to `same-origin`. +

  • Switch on policy: @@ -4549,6 +4572,10 @@ steps. They return a response.

    is true; otherwise false. +

  • +

    If Cross-Origin-Embedder-Policy allows credentials with request, let + includeCredentials be false.

    +
  • Let contentLength be httpRequest's body's length, if httpRequest's body is non-null; otherwise null. @@ -7720,6 +7747,7 @@ Arkadiusz Michalski, Arne Johannessen, Artem Skoretskiy, Arthur Barstow, +Arthur Sonzogni, Asanka Herath, Axel Rauschmayer, Ben Kelly,