Modifying headers in middleware from server-side request #67540
Unanswered
darking98
asked this question in
App Router
Replies: 1 comment
-
|
any suggestion? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hey there, im struggling to try to change the headers of a request in the middleware file, i've tried everything but still cant log the new headers in my api route, any ideas of whats happening?
Things to keep in mind:
My page.tsx component its a server-component
I'm using Next.js 14.1.0 and app route folder structure
app/prueba/page.tsx
api/refresh-token/route.ts
middleware.ts
console.log of request.headers in api/refresh-token/route.ts
Thanks anyways
Beta Was this translation helpful? Give feedback.
All reactions