Skip to content

Commit 953e631

Browse files
[Workers] format revision (cloudflare#3216)
* [Workers] format fix * [Workers] format revision * remove backticks * spacing
1 parent 5485759 commit 953e631

File tree

12 files changed

+32
-22
lines changed

12 files changed

+32
-22
lines changed

products/workers/src/content/platform/compatibility-dates.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
---
2-
order: 10
32
pcx-content-type: concept
43
---
54

products/workers/src/content/platform/cron-triggers/index.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
---
2-
order: 9
32
pcx-content-type: concept
43
---
54

products/workers/src/content/platform/deploy-button.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
---
2-
order: 8
32
pcx-content-type: concept
43
---
54

products/workers/src/content/platform/environment-variables.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
---
2-
order: 7
32
pcx-content-type: concept
43
---
54

products/workers/src/content/platform/environments.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
---
2-
order: 6
32
pcx-content-type: concept
43
---
54

products/workers/src/content/platform/known-issues.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
---
2-
order: 5
32
pcx-content-type: concept
43
---
54

products/workers/src/content/platform/languages.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
---
2-
order: 1
32
pcx-content-type: concept
43
---
54

products/workers/src/content/platform/limits.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
---
2-
order: 2
32
pcx-content-type: concept
43
---
54

products/workers/src/content/platform/pricing.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
---
2-
order: 3
32
pcx-content-type: concept
43
---
54

products/workers/src/content/platform/routes.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
---
2-
order: 4
32
pcx-content-type: concept
43
---
54

products/workers/src/content/runtime-apis/headers.md

Lines changed: 32 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -37,24 +37,45 @@ Cloudflare sets a number of [its own custom headers on incoming requests](https:
3737

3838
### Request headers
3939

40-
* `CF-Connecting-IP`: In same-zone Worker subrequests, the value of `CF-Connecting-IP` reflects the value of `x-real-ip` (the client’s IP). `x-real-ip` can be altered by the user in their Worker script.
40+
<details>
41+
<summary>CF-Connecting-IP</summary>
42+
<div>
4143

42-
In cross-zone subrequests from one Cloudflare customer zone to another Cloudflare customer zone, the `CF-Connecting-IP` value will be set to the Worker client IP address `'2a06:98c0:3600::103'` for security reasons.
44+
In same-zone Worker subrequests, the value of `CF-Connecting-IP` reflects the value of `x-real-ip` (the client’s IP). `x-real-ip` can be altered by the user in their Worker script.
4345

44-
For Worker subrequests destined for a non-Cloudflare customer zone, the `CF-Connecting-IP` and `x-real-ip` headers will both reflect the client's IP address, with only the `x-real-ip` header able to be altered.
46+
In cross-zone subrequests from one Cloudflare customer zone to another Cloudflare customer zone, the `CF-Connecting-IP` value will be set to the Worker client IP address `'2a06:98c0:3600::103'` for security reasons.
4547

46-
When no Worker subrequest is triggered, `cf-connecting-ip` reflects the client's IP address and the `x-real-ip` header is stripped.
48+
For Worker subrequests destined for a non-Cloudflare customer zone, the `CF-Connecting-IP` and `x-real-ip` headers will both reflect the client's IP address, with only the `x-real-ip` header able to be altered.
4749

48-
* `CF-Worker`: Added to all Worker subrequests sent via `fetch()`. Set to the name of the zone which owns the Worker making the subrequest. For example, a Worker script on route for `foo.example.com/*` from `example.com` will have all subrequests with the header:
50+
When no Worker subrequest is triggered, `cf-connecting-ip` reflects the client's IP address and the `x-real-ip` header is stripped.
4951

50-
`CF-Worker`: `example.com`
52+
</div>
53+
</details>
5154

52-
The intended purpose of this header is to provide a means for recipients (for example, origins, load balancers, other Workers) to recognize, filter, and route traffic generated by Workers on specific zones.
55+
<details>
56+
<summary>CF-Worker</summary>
57+
<div>
5358

54-
<Aside type="note">
59+
Added to all Worker subrequests sent via `fetch()`. Set to the name of the zone which owns the Worker making the subrequest. For example, a Worker script on route for `foo.example.com/*` from `example.com` will have all subrequests with the header:
5560

56-
When configuring Cloudflare Firewall Rules, do not match on this header. Firewall Rules are applied before Cloudflare adds the `CF-Worker` header. Instead, use the `cf.worker.upstream_zone`(https://tinyurl.com/2wx4senh) dynamic field, which contains the same value and exists for the same purpose.
61+
`CF-Worker`: `example.com`
5762

58-
</Aside>
63+
The intended purpose of this header is to provide a means for recipients (for example, origins, load balancers, other Workers) to recognize, filter, and route traffic generated by Workers on specific zones.
5964

60-
* `CF-EW-Via`: Used for loop detection, similar to the `CDN-Loop` [header](https://blog.cloudflare.com/preventing-request-loops-using-cdn-loop/).
65+
<Aside type="note">
66+
67+
When configuring Cloudflare Firewall Rules, do not match on this header. Firewall Rules are applied before Cloudflare adds the `CF-Worker` header. Instead, use the `cf.worker.upstream_zone`(https://tinyurl.com/2wx4senh) dynamic field, which contains the same value and exists for the same purpose.
68+
69+
</Aside>
70+
71+
</div>
72+
</details>
73+
74+
<details>
75+
<summary>CF-EW-Via</summary>
76+
<div>
77+
78+
Used for loop detection, similar to the `CDN-Loop` [header](https://blog.cloudflare.com/preventing-request-loops-using-cdn-loop/).
79+
80+
</div>
81+
</details>

products/workers/src/content/runtime-apis/web-standards.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
---
22
title: Web standards
3-
order: 0
43
pcx-content-type: configuration
54
---
65

0 commit comments

Comments
 (0)