We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Puma Scan didn’t detect missing HttpOnly and Secure flags here.
Secure settings are Secure = true, HttpOnly = true, and Expires can only be set to a past date.
HttpCookie CreateCookie(string value) { var ck = new HttpCookie(COOKIE_NAME, value); if (string.IsNullOrWhiteSpace(value)) ck.Expires = DateTime.Now.AddYears(-1); return ck; } or ```cs Response.SetCookie(new HttpCookie("sid", sid) { Expires = DateTime.Now.AddDays(1) });
The text was updated successfully, but these errors were encountered:
Here's another sink in .NET Core
CookieOptions options = new CookieOptions() { HttpOnly = true, Secure = true, SameSite = SameSiteMode.Strict, };
Sorry, something went wrong.
aguggenberger
No branches or pull requests
Puma Scan didn’t detect missing HttpOnly and Secure flags here.
Secure settings are Secure = true, HttpOnly = true, and Expires can only be set to a past date.
The text was updated successfully, but these errors were encountered: