تخطَّ إلى المحتوى

Insecure cookie (ARCH3123)

هذا المحتوى غير متوفر بلغتك بعد.

Key typescript.security.insecure-cookie · Severity warning · Category security · CWE CWE-614

Cookies set without the Secure flag can be transmitted over cleartext HTTP and intercepted on the network. Always mark sensitive cookies Secure.

res.cookie("session", token, { httpOnly: true });
res.cookie("session", token, {
httpOnly: true,
secure: true,
sameSite: "lax",
});

Set session and auth cookies with secure: true so they are only sent over HTTPS.