C#

C#

By DeepSource

Audit required: Cookie is transmitted over an insecure connectionCS-A1009

Security

Setting Secure to false means that the cookie is allowed to be transmitted over an insecure connection. It is always recommended that you send and receive information only via a secure line.

Examples

Bad Practice

cookie.Secure = false;

Recommended

[Flags]
cookie.Secure = true;

Reference