Losing headers through Cloudflare Tunnel
I have I setup where a worker and an auth server are behind the same tunnel.
1. NextJS frontend (worker) (dev.domain.com)
2. Auth server (GCP) (auth.domain.com)
both run on the same domain
During auth, the FE fetches from the Auth server (effectively a proxy)
I can see the auth server returning the headers I expect from its logs, however the response in Next is missing them and has a bunch of CF headers added as well. The auth server has both allow origin / headers set to *
Anyone know what's going on and how I can get my headers to persist through the CF tunnel?
0 Replies