hostname usually you run your dev server at smth like http://localhost:3000/ you may want to use own hostname like https://local.webapp.com:3000/ if you do not use a proxy server set host at vite's config export default defineConfig(({ command, mode }) => { return { server: { host: 'local.webapp.com', port: 3000, }, } }) and also configure local DNS by adding hostname into this file code /etc/hosts or run sudo echo "127.0.0.1 local.webapp.com" | sudo tee -a /etc/hosts 127.0.0.1 localhost 255.255.255.255 broadcasthost ::1 localhost 127.0.0.1 local.webapp.com