Need some help from httpOnly cookies with Strapi & Next.js
Unanswered
universe posted this in #help-forum
universeOP
Hello, I’m new to web development and currently working on implementing JWT authentication using HttpOnly cookies in a project with Strapi and Next.js. Everything functions correctly when tested using Postman—I can set HttpOnly cookies and the token passes and verifies without issue. However, when I attempt to run the same process in Chrome via Next.js, the cookies do not seem to be set properly, and the token isn’t working as expected.
I’ve checked various configurations and settings but haven’t been able to resolve the issue. Could someone possibly help me understand what might be
going wrong?
+ I guess this is the CORS problem...
You can find more detailed information about my setup and the specific problems I’m encountering in my Stack Overflow post here:
https://stackoverflow.com/questions/78999168/httponly-cookies-between-strapi-and-next-js
I’ve checked various configurations and settings but haven’t been able to resolve the issue. Could someone possibly help me understand what might be
going wrong?
+ I guess this is the CORS problem...
You can find more detailed information about my setup and the specific problems I’m encountering in my Stack Overflow post here:
https://stackoverflow.com/questions/78999168/httponly-cookies-between-strapi-and-next-js