-
-
Notifications
You must be signed in to change notification settings - Fork 308
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG]: CORS prevents signup when running locally via docker-compose up
#251
Comments
Note: I did set Command to run:
(Aside: docker-compose does not exit when I press Ctrl+C.) |
Hmmk so FRONT_URL was setting CORS settings but Postgres was not starting even though POSTGRES_PORT was set. So new bug: Lago does not honour POSTGRES_PORT override, or maybe Postgres refuses to start. Probably port mapping issue. |
@theronic so the CORS issue is resolved? Can you share some errors or informations about the |
just adding, can you check that you are on the |
The issue is seemed to be in api environment, we should use 5432 port here, not port from env
|
if you use the ports:
- ${POSTGRES_PORT:-5432}:${POSTGRES_PORT:-5432} |
fixed in #254 |
(edit: accurate compose command to overrides ports)
Describe the bug
Access to fetch at 'http://localhost:3000/graphql' from origin 'http://localhost:8081' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.
To Reproduce
Steps to reproduce the behavior:
Now open frontend on port 8081 and try to sign up. Frontend loads but API doesn't start because Postgres doesn't start.
Expected behavior
should not fail
Screenshots
Support
macOS, Brave.
The text was updated successfully, but these errors were encountered: