Convenience middleware for localhost DNS rebinding protection. Allows only localhost, 127.0.0.1, and [::1] (IPv6 localhost) hostnames.
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.