Can you explain the DNS rebinding attack for local development? #19287
-
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 After upgrading to Vite 6.0.11 I saw this message:
I changed the Can you please explain to me if setting |
Beta Was this translation helpful? Give feedback.
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.
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,
admin.x.local
/client.y.local
/customer.z.local
are written in/etc/hosts
and you have the control of it, so it's fine to include them inserver.allowedHosts
.local
is a reserved TLD and will never be registered, so other person cannot point any*.local
to an addresss, so it's fine to include.local
inserver.allowedHosts
The reason why
.localhost
is included by default and.local
is not included by default even though.local
is reserved, is just that.local
is reserved for a different purpose.