Skip to content

Commit 96e1833

Browse files
authored
Document global_fetch_strictly_public flag (#18075)
1 parent 0dd1eac commit 96e1833

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
---
2+
_build:
3+
publishResources: false
4+
render: never
5+
list: never
6+
7+
name: "Global fetch() strictly public"
8+
sort_date: "2024-11-08"
9+
enable_flag: "global_fetch_strictly_public"
10+
disable_flag: "global_fetch_private_origin"
11+
---
12+
13+
When the `global_fetch_strictly_public` compatibility flag is enabled, the global [`fetch()` function](/workers/runtime-apis/fetch/) will strictly route requests as if they were made on the public Internet.
14+
15+
This means requests to a Worker's own zone will loop back to the "front door" of Cloudflare and will be treated like a request from the Internet, possibly even looping back to the same Worker again.
16+
17+
When the `global_fetch_strictly_public` is not enabled, such requests are routed to the zone's origin server, ignoring any Workers mapped to the URL and also bypassing Cloudflare security settings.

0 commit comments

Comments
 (0)