JS: Move an alert and add RelatedLocations

This commit is contained in:
Asger F
2025-02-25 15:22:30 +01:00
parent 360c76514c
commit 69b2d197e6

View File

@@ -4,9 +4,9 @@ const helmet = require("helmet");
const app = express();
app.use(helmet({
contentSecurityPolicy: false, // $ Alert - switch off default CSP
frameguard: false // $ Alert - switch off default frameguard
}));
contentSecurityPolicy: false, // $ RelatedLocation - switch off default CSP
frameguard: false // $ RelatedLocation - switch off default frameguard
})); // $ Alert
app.get("/", (req, res) => {
res.send("Hello, world!");