Tell us what’s happening:
I got error "
// running tests
1. helmet.frameguard() middleware should be mounted correctly
// tests completed
const express = require('express');
const app = express();
const helmet = require('helmet');
app.use(helmet.hidePoweredBy());
app.use(helmet.frameguard({action: 'deny'}));
module.exports = app;
const api = require('./server.js');
app.use(express.static('public'));
app.disable('strict-transport-security');
app.use('/_api', api);
app.get("/", function (request, response) {
response.sendFile(__dirname + '/views/index.html');
});
let port = process.env.
###Your project link(s)
solution: Glitch :・゚✧
Your browser information:
User Agent is: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36 Edg/131.0.0.0
Challenge Information:
Information Security with HelmetJS - Mitigate the Risk of Clickjacking with helmet.frameguard()