Skip to content

Commit

Permalink
Remove CF-Connecting-IP for requests to the edge preview (#7712)
Browse files Browse the repository at this point in the history
* Remove CF-Connecting-IP for requests to the edge preview

* Create honest-pillows-tease.md
  • Loading branch information
penalosa authored Jan 9, 2025
1 parent 28f0154 commit 6439347
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/honest-pillows-tease.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"wrangler": patch
---

Remove CF-Connecting-IP for requests to the edge preview
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,9 @@ export class RemoteRuntimeController extends RuntimeController {
...(accessToken
? { Cookie: `CF_Authorization=${accessToken}` }
: {}),
// Make sure we don't pass on CF-Connecting-IP to the remote edgeworker instance
// Without this line, remote previews will fail with `DNS points to prohibited IP`
"cf-connecting-ip": "",
},
liveReload: config.dev.liveReload,
proxyLogsToController: true,
Expand Down

0 comments on commit 6439347

Please sign in to comment.