ajinabraham.njsscan.good_helmet_checks.helmet_header_frame_guard

Author
1,129
Download Count*
License
X-Frame-Options header is present. More information: https://helmetjs.github.io/docs/frameguard/
Run Locally
Run in CI
Defintion
rules:
- id: helmet_header_frame_guard
message: "X-Frame-Options header is present. More information:
https://helmetjs.github.io/docs/frameguard/"
languages:
- javascript
severity: INFO
patterns:
- pattern-not: |
$HELMET(..., {frameguard: false}, ...)
- pattern-either:
- pattern: |
$APP.use(hemlet())
- pattern: |
helmet.frameguard(...)
- pattern: |
frameguard(...)
- pattern: |
helmet({frameguard: ...})
metadata:
license: LGPL-3.0-or-later
Short Link: https://sg.run/b7YP