Convenience middleware for localhost DNS rebinding protection. Allows only localhost, 127.0.0.1, and [::1] (IPv6 localhost) hostnames.
localhost
127.0.0.1
[::1]
app.use(localhostHostValidation()); Copy
app.use(localhostHostValidation());
Convenience middleware for localhost DNS rebinding protection. Allows only
localhost,127.0.0.1, and[::1](IPv6 localhost) hostnames.