Information Security with HelmetJS - Mitigate the Risk of Clickjacking with helmet.frameguard()

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:

downgrade Helmet to 2.3.0 according to the following temporary solution provided here Information security with HelmetJS #lesson-2 - #4 by ganeshh123 by ganeshh123 which worked for me.