Passing headers from a server component to an api endpoint
Unanswered
Siberian Flycatcher posted this in #help-forum
Siberian FlycatcherOP
I am trying to pass headers from a server component to an internal api endpoint so I can access the ip address, user agent, and _epik (pinterest ad tracking id). It works locally but it doesn't work in production on vercel. I marked the important lines with breakpoints in the included screenshot for your reference.
How do I forward the headers that are coming from the client in the server component to the internal api endpoint?
How do I forward the headers that are coming from the client in the server component to the internal api endpoint?