Skip to content
This repository was archived by the owner on Mar 13, 2025. It is now read-only.

Commit fbd665b

Browse files
authored
Merge pull request #431 from cloudflare/tre-allow-private-net
Allow access to private networks
2 parents f7675c3 + 824765e commit fbd665b

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

packages/tre/src/plugins/core/index.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -316,6 +316,18 @@ export const CORE_PLUGIN: Plugin<
316316
bindings: serviceEntryBindings,
317317
},
318318
},
319+
// Allow access to private/public addresses:
320+
// https://github.com/cloudflare/miniflare/issues/412
321+
{
322+
name: "internet",
323+
network: {
324+
// Can't use `["public", "private"]` here because of
325+
// https://github.com/cloudflare/workerd/issues/62
326+
allow: ["0.0.0.0/0"],
327+
deny: [],
328+
tlsOptions: { trustBrowserCas: true },
329+
},
330+
},
319331
];
320332

321333
// Define regular user worker if script is set

0 commit comments

Comments
 (0)