mirror of
https://github.com/dbeaver/cloudbeaver.git
synced 2026-09-24 16:04:36 +08:00
chore: CB-1654 formatting
This commit is contained in:
@@ -367,10 +367,10 @@ public class WebServiceUtils {
|
||||
|
||||
String path = CBApplication.getInstance().getRootURI();
|
||||
|
||||
if(sameSite != null) {
|
||||
if(sameSite.toLowerCase() == "none" && request.isSecure() == false) {
|
||||
if (sameSite != null) {
|
||||
if (sameSite.toLowerCase() == "none" && request.isSecure() == false) {
|
||||
log.debug("Attempt to set Cookie `" + cookieName + "` with `SameSite=None` failed, it require a secure context/HTTPS");
|
||||
}else {
|
||||
} else {
|
||||
sessionCookie.setSecure(true);
|
||||
path = path.concat("; SameSite=" + sameSite);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user