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

Cookie Missing HttpOnly (ARCH9124)

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

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.