You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This site can’t provide a secure connection localhost uses an unsupported protocol.
ERR_SSL_VERSION_OR_CIPHER_MISMATCH Unsupported protocol
The client and server don't support a common SSL protocol version or cipher suite.
Safari 15.5 on macOS 12.4:
Safari Can't Open the Page
Safari can't open the page "https://localhost:5173" because Safari can't establish a secure connection to the server "localhost".
Chrome 103 on iOS 15.5:
This site can't provide a secure connection 192.168.0.100 sent an invalid response.
ERR_SSL_PROTOCOL_ERROR
Safari 15.5 on iOS 15.5:
Safari cannot open the page because it could not establish a secure connection to the server.
Chrome 103 on Android 9:
This site can't provide a secure connection 192.168.0.100 uses an unsupported protocol.
ERR_SSL_VERSION_OR_CIPHER_MISMATCH
Reproduction
I literally just created a project from scratch with yarn create vite using the option vanilla and ran yarn dev --https.
Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
Make sure this is a Vite issue and not a framework-specific issue. For example, if it's a Vue SFC related bug, it should likely be reported to vuejs/core instead.
A valid certificate is needed when using https. In Vite v2, if no certificate was configured, a self-signed certificate was automatically created and cached.
Since Vite v3, we recommend manually creating your certificates. If you still want to use the automatic generation from v2, this feature can be enabled back by adding @vitejs/plugin-basic-ssl to the project plugins.
Enable TLS + HTTP/2. Note this downgrades to TLS only when the server.proxy option is also used.
The value can also be an options object passed to https.createServer().
A valid certificate is needed. For a basic setup, you can add @vitejs/plugin-basic-ssl to the project plugins, which will automatically create and cache a self-signed certificate. But we recommend creating your own certificates.
Describe the bug
Up to
vite@2.9.14
, I'm able to runvite --https
and open https://localhost:5173 or https://192.168.0.100:5173 in my browser just fine. Withvite@3.0.0
(and alsovite@3.0.2
), it shows:Chrome 103 on macOS 12.4:
Safari 15.5 on macOS 12.4:
Chrome 103 on iOS 15.5:
Safari 15.5 on iOS 15.5:
Chrome 103 on Android 9:
Reproduction
I literally just created a project from scratch with
yarn create vite
using the optionvanilla
and ranyarn dev --https
.System Info
Used Package Manager
yarn
Logs
Click to expand!
Validations
The text was updated successfully, but these errors were encountered: