Skip to content

Commit cee86d3

Browse files
Merge branch 'production' into update-api-schemas-1092547fc98757b22b6333f76c9b405859d74b82
2 parents b9172d0 + e2aeb03 commit cee86d3

File tree

2 files changed

+17
-2
lines changed

2 files changed

+17
-2
lines changed
Lines changed: 17 additions & 0 deletions
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.

src/util/api.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
import SwaggerParser from "@apidevtools/swagger-parser";
22
import type { OpenAPI } from "openapi-types";
3-
4-
const COMMIT = "1092547fc98757b22b6333f76c9b405859d74b82";
53
let schema: OpenAPI.Document | undefined;
64

75
export const getSchema = async () => {

0 commit comments

Comments
 (0)