Skip to content

🎧 Your Personal Streaming Service

Fix cookie warning

Deluan47bcf719f276
diff --git a/server/middlewares.go b/server/middlewares.go
index 6624bc02d..42b88281c 100644
--- a/server/middlewares.go
+++ b/server/middlewares.go
@@ -92,6 +92,8 @@ func clientUniqueIdAdder(next http.Handler) http.Handler {
Value: clientUniqueId,
MaxAge: consts.CookieExpiry,
HttpOnly: true,
+ Secure: true,
+ SameSite: http.SameSiteNoneMode,
Path: "/",
}
http.SetCookie(w, c)