Dec 26, 2022
0
Level 2
How to change domain in Vue 3 (vite)
Hi, I need to change vue (vite) top level domain from localhost:5173 to 127.0.0.1:5173 in order to estabilish connection between front and back (for cookies & authorization) , tried to add dev server config in vite.config.js but it doesnt work :
devServer: {
host: "127.0.0.1",
port: 5173,
},
Application only runs on localhost:5173 and when i try to access 127.0.0.1:5173 browser fails to open page, with message: Safari cant open page, because the page adress isnt valid.
So how am I supposed to change port from localhost to 127.0.0.1:5173 ?
Please or to participate in this conversation.