Skip to content

Commit 08c7d0f

Browse files
authored
[ZT] Validate Access JWT header instead of cookie (#24376)
* use header instead of cookie * update instructions to use the header
1 parent 08385b9 commit 08c7d0f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/content/docs/cloudflare-one/identity/authorization-cookie/validating-json.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ sidebar:
77

88
import { GlossaryTooltip } from "~/components";
99

10-
When Cloudflare sends a request to your origin, the request will include an [application token](/cloudflare-one/identity/authorization-cookie/application-token/) as a `Cf-Access-Jwt-Assertion` request header and as a `CF_Authorization` cookie.
10+
When Cloudflare sends a request to your origin, the request will include an [application token](/cloudflare-one/identity/authorization-cookie/application-token/) as a `Cf-Access-Jwt-Assertion` request header. Requests made through a browser will also pass the token as a `CF_Authorization` cookie.
1111

12-
Cloudflare signs the token with a key pair unique to your account. You should validate the token with your public key to ensure that the request came from Access and not a malicious third party.
12+
Cloudflare signs the token with a key pair unique to your account. You should validate the token with your public key to ensure that the request came from Access and not a malicious third party. We recommend validating the `Cf-Access-Jwt-Assertion` header instead of the `CF_Authorization` cookie, since the cookie is not guaranteed to be passed.
1313

1414
## Access signing keys
1515

@@ -72,7 +72,7 @@ As shown in the example below, `https://<your-team-name>.cloudflareaccess.com/cd
7272

7373
To verify the token manually:
7474

75-
1. Copy the JWT from the `CF_Authorization` cookie or from the `Cf-Access-Jwt-Assertion` request header.
75+
1. Copy the JWT from the `Cf-Access-Jwt-Assertion` request header.
7676

7777
2. Go to [jwt.io](https://jwt.io/).
7878

0 commit comments

Comments
 (0)