Zum Inhalt springen

Cookie Missing HttpOnly (ARCH9124)

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

Key swift.security.cookie-missing-httponly · Severity warning · Category security · CWE CWE-1004

Flags session / auth cookies created with isHTTPOnly: false.

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

Set isHTTPOnly: true on cookies JavaScript has no business reading.