Bezbednost: rešeno 7 kritičnih nalaza (HP-01 do HP-07)

This commit is contained in:
2026-06-07 10:16:50 +02:00
parent df8c357566
commit 301bcaf5c4
7 changed files with 32 additions and 23 deletions
+2
View File
@@ -5,6 +5,7 @@ import (
"fmt"
"net"
"net/http"
"os"
"strings"
"time"
@@ -304,6 +305,7 @@ func napraviKolacic(token string, istice time.Time) *http.Cookie {
Path: "/",
Expires: istice,
HttpOnly: true,
Secure: os.Getenv("NTECH_ENV") == "production",
SameSite: http.SameSiteStrictMode,
}
}