Replies: 1 comment 4 replies
-
As long as you have the control of to what IP address the domain points for the domain name you use, it would be safe. So in your case,
The reason why |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I use a centralized vite.config.js for a lot of projects. I also use local domains with fake SSL certificates to simulate the server. For example:
admin.x.local
client.y.local
customer.z.local
After upgrading to Vite 6.0.11 I saw this message:
I changed the
vite.config.js
and set theserver.allowHosts
to true and it solved the problem.I don't use
localhost
because it's too long. I use.local
for our local development.When I saw the docs I realized that it might cause the DNS rebinding attack. I read about it and it seemed to me that this attack only works if I have a private DNS somewhere on my network. However, I only use
/etc/hosts
file.Can you please explain to me if setting
server.allowedHosts = true
for.local
hosts can pose security problems or not?Beta Was this translation helpful? Give feedback.
All reactions