Oauth and Email Authentication works locally but not in docker container :( #8754
Unanswered
Guo-KeCheng
asked this question in
Help
Replies: 1 comment
-
Did you every figure this out? having the same issues with my react springboot application |
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
-
Summary
Hi folks,
Techstack used: NextJS, PSQL, MongoDB, Prisma
This is my first time posting in such an extensive discussion, if there are any misconceptions that I have or any ways to improve my processes, feel free to point them out.
For context, I am working on a web app project with a frontend, with user and question backend microservices . The frontend uses Google Oauth and Email/Password as authentication. The authentication works in local development mode, even when dockerizing all backend microservices only. Up till this step, the frontend can communicate to the backend.
The issue arises when I dockerize everything (frontend included). The following error keeps showing up whenever I try to do a POST or GET request to the user microservice.
A lot of the online search results suggested that this was a CORS issue but I have set the user app to use cors with the following settings
I have also tried to use withCredientials set to true when doing an axios POST call.
This is the docker-compose file I'm using
This is the env.local file that I am using in my frontend
I have been stuck on this for a week with input from quite a bunch of people but still no progress so any help here is really appreciated. Arigatou!
Additional information
No response
Example
No response
Beta Was this translation helpful? Give feedback.
All reactions