Closed henriquedevelops closed 1 year ago
https://github.com/Bibooo25730/recat/blob/main/nodeApp/router/user.js
This is my login code, you can take a look, I registered using my email address, I am from China, I use 163 email address, but it should be more or less the same
Describe the bug
2 Docker containers:
I tested it on localhost with Docker Compose: Everything working fine (both Postman and the browser successfully store the token as a cookie to use on subsequent requests.).
I deployed it to Google Cloud Run (one service for each container). Everything working fine except that now only requests made through Postman are storing the token as a cookie.
The browser (the Next.JS app) no longer does the same, even though the request returns a successful response there is no token in the browser cookies.
I did some research, found a few similar problems, and the solutions usually involve setting up some CORS configurations, so I updated my code by adding these configurations, but the issue remains.
I am currently trying it like this:
Server-side:
Client-side:
To Reproduce
No response
Code snippet
No response
Expected behavior
No response
Axios Version
No response
Adapter Version
No response
Browser
No response
Browser Version
No response
Node.js Version
No response
OS
No response
Additional Library Versions
No response
Additional context/Screenshots
No response