Tell us what’s happening:
Describe your issue in detail here.
const express = require(‘express’);
const app = express();
const helmet = require(‘helmet’);
app.use(helmet.hidePoweredBy());
app.use(helmet.frameguard({action: ‘deny’}));
This is my code but
// running tests
helmet.frameguard() middleware should be mounted correctly
helmet.frameguard() ‘action’ should be set to ‘DENY’
// tests completed
I am getting this error
Your project link(s)
solution: boilerplate-infosec - Node.js Repl - Replit
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.5112.102 Safari/537.36
Challenge: Information Security with HelmetJS - Mitigate the Risk of Clickjacking with helmet.frameguard()
Link to the challenge: