Adding headers in server middleware doesn't work with Vercel cache #2905
ryanweston
started this conversation in
Help Wanted
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, I'm currently trying to deploy server middleware that adjusts request & response headers for my routes. This works as expected locally, with the
node-server
preset and on my Cloudflare pages deployment.However on Vercel none of the headers get proxied from the middleware as expected and the headers assigned on first run are cached with the route, resulting in sensitive information being leaked.
Can't get to the bottom of what's happening here. Any help or insight into the matter would be much appreciated.
Beta Was this translation helpful? Give feedback.
All reactions