Web-standard Request helper for DNS rebinding protection.
Request
const result = validateHostHeader(req.headers.get('host'), ['localhost']); Copy
const result = validateHostHeader(req.headers.get('host'), ['localhost']);
Web-standard
Requesthelper for DNS rebinding protection.