auf SSH umstellen
This commit is contained in:
@@ -2,8 +2,8 @@
|
||||
|
||||
// Service-Liste
|
||||
const services = [
|
||||
{ id: "abc", name: "Control GamePad", url: "https://abc.server.schooltech.ch" },
|
||||
{ id: "xyz", name: "Guacamole", url: "https://xyz.server.schooltech.ch" }
|
||||
{ id: "abc", name: "Control GamePad", url: "https://abc.server.schooltech.ch/" },
|
||||
{ id: "xyz", name: "Guacamole", url: "https://xyz.server.schooltech.ch/" }
|
||||
];
|
||||
|
||||
// DOM-Elemente
|
||||
@@ -82,3 +82,14 @@ function logout() {
|
||||
nav.innerHTML = "";
|
||||
loginModal.style.display = "block";
|
||||
}
|
||||
|
||||
// Setzen des Cookies für die Sitzung
|
||||
function setSessionCookie(res, user) {
|
||||
res.cookie("SESSIONID", "session-"+user, {
|
||||
httpOnly: true,
|
||||
secure: true, // zwingend bei SameSite=None
|
||||
domain: ".server.schooltech.ch",
|
||||
sameSite: "None",
|
||||
path: "/"
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user