When --host
option is used browsers show 404 for localhost
#14934
Unanswered
Omarov3000
asked this question in
Q&A
Replies: 3 comments 1 reply
-
I guess your computer resolves |
Beta Was this translation helpful? Give feedback.
0 replies
-
I tried both your suggestions but they don't help. this is my
|
Beta Was this translation helpful? Give feedback.
0 replies
-
I've come across this issue, and what solved it for me was moving my |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Describe the bug
Vite prints addresses on start. If I open the one containing
localhost
(or setopen: true
in config) I get an error in all browsers:Note: my app is accessible via printed "network" address or using
127.0.0.1:5173
If
--host
option is not used I can access my app onlocalhost
.Reproduction
https://github.com/Omarov3000/vite--host-issue
Steps to reproduce
localhost:5173
System Info
Used Package Manager
pnpm
Logs
No response
Validations
Beta Was this translation helpful? Give feedback.
All reactions