cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

How to secure Spartacus with helmet?

627

Hello experts! We are trying to add helmet to our front end to make it more secure. If I understand correctly, Spartacus runs on an Express server so it should be compatible with helmet. I have added helmet to the package.json file and yarn install runs without any warnings. To our server.ts file I have added the following lines:

const server = express();

const helmet = require("helmet");

server.use(helmet.frameguard({ action: "SAMEORIGIN" }));

Still when I view the application the helmet specific HTTP headers do not appear in the requests sent to the server. How can I secure the app using helmet?

Accepted Solutions (0)

Answers (0)