Zum Inhalt springen

Insecure Cookie (ARCH9123)

Dieser Inhalt ist noch nicht in deiner Sprache verfügbar.

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).