Skip to content

Commit 6a56063

Browse files
committed
JS: Move an alert and add RelatedLocations
1 parent 0563606 commit 6a56063

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

javascript/ql/test/query-tests/Security/CWE-693/InsecureHelmetBad.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ const helmet = require("helmet");
44
const app = express();
55

66
app.use(helmet({
7-
contentSecurityPolicy: false, // $ Alert - switch off default CSP
8-
frameguard: false // $ Alert - switch off default frameguard
9-
}));
7+
contentSecurityPolicy: false, // $ RelatedLocation - switch off default CSP
8+
frameguard: false // $ RelatedLocation - switch off default frameguard
9+
})); // $ Alert
1010

1111
app.get("/", (req, res) => {
1212
res.send("Hello, world!");

0 commit comments

Comments
 (0)