How to send cookies and headers in app dir
Hello. I have an index page in the pages directory. I want to do the same thing but using the app dir
Basically, I'm sending a request to an express server. Which verifies the user using their access/refresh token gotten from the request cookies/header.
I want to do the same in in appdir. I tried this:
But it doesn't send the cookies/headers to the server.
For context.
Basically, I'm sending a request to an express server. Which verifies the user using their access/refresh token gotten from the request cookies/header.
I want to do the same in in appdir. I tried this:
But it doesn't send the cookies/headers to the server.
For context.
fetcher is just an axios call to get data