79357211

Date: 2025-01-15 06:22:02
Score: 1
Natty:
Report link

Thank you very much. I worked on it for 3 days and your solution saved me.

 static create(res: Response, data: object) {
        const token = JsonWebToken.sign(data);

        res.cookie("your_cookie", token, {
            maxAge: 604800 * 1000,
            httpOnly: true,
            sameSite: "none",
            secure: true,
            domain: ".web.com
        });
    }
}
Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Ehsan Masoumi por