-
-
Notifications
You must be signed in to change notification settings - Fork 6.1k
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
Client websocket connect failed when using https option and reverse proxy #1925
Labels
Comments
It is similar to #1653 |
I assume the hmr port config option already addresses the issue according to your comment here: #1926 (comment) |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Describe the bug
Vite client connects to websocket server failed when using https option and reverse proxy to map ports.
Reproduction
npm init @vitejs/app viteapp --template vue cd viteapp npm install npx vite --https
Set haproxy config to map ports
Open url
https://xx.xx.xx.xx:3001
in browser, it will go into an endelss loop trying to reconnect.System Info
vite
version: 2.0.0-beta.65Logs (Optional if provided reproduction)
the console of browser print:
The text was updated successfully, but these errors were encountered: