Skip to content

Commit

Permalink
lib: add referrerpolicy to link header validator
Browse files Browse the repository at this point in the history
  • Loading branch information
anonrig committed Oct 3, 2022
1 parent b1fce5c commit 4125c28
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/internal/validators.js
Original file line number Diff line number Diff line change
Expand Up @@ -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' ||
Expand Down

0 comments on commit 4125c28

Please sign in to comment.