Skip to content
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

Serving a web app with --open or 'o' opens 10.0.0.32 instead of 127.0.0.1 #3766

Open
charles-r-earp opened this issue Feb 20, 2025 · 0 comments · May be fixed by #3776
Open

Serving a web app with --open or 'o' opens 10.0.0.32 instead of 127.0.0.1 #3766

charles-r-earp opened this issue Feb 20, 2025 · 0 comments · May be fixed by #3776
Labels
bug Something isn't working

Comments

@charles-r-earp
Copy link
Contributor

Serving a web application with --open or pressing 'o' opens 10.0.0.32 instead of 127.0.0.1 (ie localhost), which is shown in the terminal.

To reproduce:

dx serve --example hello_world --platform web --open

Localhost is treated as a secure context by browsers, which is required for many web API's. This is how pages might fail. For instance, the fullstack-auth example fails to store secure cookies.

This bug is fairly easily worked around by either copying the address from the terminal or opening http://127.0.0.1:8080 manually.

@charles-r-earp charles-r-earp added the bug Something isn't working label Feb 20, 2025
@DogeDark DogeDark linked a pull request Feb 20, 2025 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant