When I type localhost:3000 on my browser it autocompletes to http://localhost:3000, while my dev server is configured to run on https.
Configuring the dev server to open the app on a new tab when the dev server starts
{
server: {
open: true
}
}
is helpful, but it doesn't solve the manual navigation mistake.
This thread on Vite's Github repo discusses it, but the suggestion isn't great.
To automatically navigate to
httpswhen navigating tohttpadd the HSTS header to yourvite.config.tsserver response headers:To later clear the cached HSTS entry on your browser (that expires based on
max-age) use the delete option onchrome://net-internals/#hsts