ajinabraham.njsscan.good.good_helmet_checks.helmet_header_frame_guard

profile photo of ajinabrahamajinabraham
Author
unknown
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