🐛 BUG: wrangler dev
strips port from Origin
header when running with --host
#8185
Labels
bug
Something that isn't working
Which Cloudflare product(s) does this pertain to?
Workers Runtime
What versions are you using?
3.109.2 [wrangler]
What operating system and version are you using?
macOS 13.5 (22G74)
Please provide a link to a minimal reproduction
https://gist.github.com/aron/cd013c56e5dd1205d385c3234e60da32
Describe the Bug
When running
wrangler dev
with the--host
parameter the port is stripped from theOrigin
andReferer
headers. This does not happen when running without the--host
.Example project: https://gist.github.com/aron/cd013c56e5dd1205d385c3234e60da32
The worker prints out the
Host
,Origin
andReferer
headers in a plain text response. The wrangler config is the default.Steps to reproduce:
Without
--host
:Note
Both
Origin
andReferer
include the port as expected.With
--host localhost:4000
Note
Both
Origin
andReferer
are missing the port.Please provide any relevant error logs
No response
The text was updated successfully, but these errors were encountered: