helmet.frameguard() middleware should be mounted correctly
Why its not mounted correctly if the test on replit shows that its works?
solution: boilerplate-infosec (4) - Replit
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36
Challenge: Information Security with HelmetJS - Mitigate the Risk of Clickjacking with helmet.frameguard()
const hidePoweredBy = require("hide-powered-by");
const frameguard = require("frameguard");
I guess it’s because you’re importing these as individual dependencies, when they’re already there to be used within helmet ?
You don’t need to require anything but helmet itself, and then mount through helmet .
1 Like
Now i have this error ReferenceError: hidePoweredBy is not defined
at Object.
system
Closed
August 22, 2023, 10:56am
5
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.