Kitura-Session
Kitura-Session copied to clipboard
Session cookies should be HttpOnly
See https://www.owasp.org/index.php/HttpOnly
I believe we should be setting the HttpOnly attribute on Session cookies by default. Currently we only set the domain and path attributes, and rely on the user to specify additional session cookie options via an [CookieParameter] (enum) array.
There does not appear to be provision in our current API to set just this attribute, either: although the CookieParameter enum has a .secure case, it seems to equate to both Secure and HttpOnly, which means the client will only send the cookie over an SSL connection.
FYI @Andrew-Lees11 @ianpartridge