mirror of
https://github.com/dbeaver/cloudbeaver.git
synced 2026-09-24 16:04:36 +08:00
CB-4596 fix http cookies (#2363)
This commit is contained in:
@@ -183,10 +183,12 @@ public class WebAppUtils {
|
||||
|
||||
if (sameSite != null) {
|
||||
if (!request.isSecure()) {
|
||||
log.debug("Attempt to set Cookie `" + cookieName + "` with `SameSite=None` failed, it require a secure context/HTTPS");
|
||||
log.debug("Attempt to set Cookie `" + cookieName + "` with `SameSite=" + sameSite + "` failed, it " +
|
||||
"require a secure context/HTTPS");
|
||||
} else {
|
||||
sessionCookie.setSecure(true);
|
||||
path = path.concat("; SameSite=" + sameSite);
|
||||
}
|
||||
sessionCookie.setSecure(true);
|
||||
path = path.concat("; SameSite=" + sameSite);
|
||||
}
|
||||
|
||||
sessionCookie.setPath(path);
|
||||
|
||||
Reference in New Issue
Block a user