ajinabraham.njsscan.good_helmet_checks.helmet_header_referrer_policy

Author
1,129
Download Count*
License
Referrer-Policy header is present. More information: https://helmetjs.github.io/docs/referrer-policy/
Run Locally
Run in CI
Defintion
rules:
- id: helmet_header_referrer_policy
message: "Referrer-Policy header is present. More information:
https://helmetjs.github.io/docs/referrer-policy/"
languages:
- javascript
severity: INFO
patterns:
- pattern-not: |
$HELMET(..., {referrerPolicy: false}, ...)
- pattern-either:
- pattern: |
helmet.referrerPolicy(...)
- pattern: |
referrerPolicy(...)
- pattern: |
helmet({referrerPolicy: ...})
metadata:
license: LGPL-3.0-or-later
Short Link: https://sg.run/eLzR