From 4125c2890e03aa29523884061241cb4522c56972 Mon Sep 17 00:00:00 2001 From: Yagiz Nizipli Date: Mon, 3 Oct 2022 12:11:15 +0100 Subject: [PATCH] lib: add referrerpolicy to link header validator --- lib/internal/validators.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/internal/validators.js b/lib/internal/validators.js index dde92b65847786..0267aca1233e56 100644 --- a/lib/internal/validators.js +++ b/lib/internal/validators.js @@ -404,7 +404,7 @@ function validateUnion(value, name, union) { } function validateLinkHeaderValue(value, name) { - const linkValueRegExp = /^(?:<[^>]*>;)\s*(?:rel=(")?[^;"]*\1;?)\s*(?:(?:as|anchor|title|crossorigin|disabled|fetchpriority|rel)=(")?[^;"]*\2)?$/; + const linkValueRegExp = /^(?:<[^>]*>;)\s*(?:rel=(")?[^;"]*\1;?)\s*(?:(?:as|anchor|title|crossorigin|disabled|fetchpriority|rel|referrerpolicy)=(")?[^;"]*\2)?$/; if ( typeof value === 'undefined' ||