Hello,
I have a question about Next.js server/client components. I am currently working on the full stack developer final project and wanted to use Next.js for the frontend, while keeping express as a dedicated backend.
My issue here is with sending credentials (authentication cookies) in fetch requests. After 2 days of wrecking my brains trying to figure out why they were not getting sent. I finally found out that I need to send from a client component. So my question at hand… Is it possible to send credentials/cookies from browser from a server component. If so, how?
I found a workaround of creating a client side child prop to send the info in for post/put requests. But I feel like there will be limitations and could get messy, so I’m looking for a way to send from server component