Aller au contenu

Insecure Cookie (ARCH9123)

Ce contenu n’est pas encore disponible dans votre langue.

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

Flags cookies created with isSecure: false / without the secure attribute.

HTTPCookies.Value(string: token, isSecure: false)
HTTPCookies.Value(string: token, isSecure: true, isHTTPOnly: true)

Set isSecure (and isHTTPOnly for session cookies).