Hi I have a project in node.js
and I want to set the HttpOnly flag: true for header response.
I have written the following code in app.js
but it make no effect in response header .
app.use(session({
secret: "notagoodsecretnoreallydontusethisone",
resave: false,
saveUninitialized: true,
cookie: {httpOnly: true, secure: true}
}));
So any suggestion for setting HttpOnly Flag in express.js
is most welcome.