Search
Star
Feedback
Setup for Free
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
`502`s from dev worker when adding headers - Cloudflare Developers
CD
Cloudflare Developers
•
3y ago
Luke
`502`s from dev worker when adding headers
If I add over 1kb of headers to the response object the I get several
Uncaught (in response) Error: Network connection lost.
Uncaught (in response) Error: Network connection lost.
errors and the worker responds with a 502 response
. The requests work fine in production and in
miniflare
miniflare
.
Cloudflare Developers
Join
Welcome to the official Cloudflare Developers server. Here you can ask for help and stay updated with the latest news
85,042
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
CORS headers overrided when using remote dev
CD
Cloudflare Developers / workers-and-pages-help
3y ago
Got 403 when adding worker env
CD
Cloudflare Developers / workers-and-pages-help
2y ago
CORS headers for static assets of a worker in dev
CD
Cloudflare Developers / workers-and-pages-help
16mo ago
Custom Headers with Worker Fetch
CD
Cloudflare Developers / workers-and-pages-help
5mo ago