Prevent altering the result when supplied user-agent is different from current user-agent

This commit is contained in:
Faisal Salman
2023-03-29 22:52:56 +07:00
parent 30de983043
commit b09878934f
5 changed files with 13 additions and 11 deletions

View File

@@ -477,7 +477,7 @@ http.createServer(function (req, res) {
res.setHeader('Accept-CH', getHighEntropyValues);
res.setHeader('Critical-CH', getHighEntropyValues);
var ua = uap(req.headers);
var ua = uap(req.headers).withClientHints();
// END since@2.0 */