fix: exclude first segment from account cookie domain (#8348)

This commit is contained in:
Alexander Onnikov
2025-03-26 17:14:47 +07:00
committed by GitHub
parent 0641da8a15
commit 651c1395a8
+1 -1
View File
@@ -199,7 +199,7 @@ export function serveAccount (measureCtx: MeasureContext, brandings: BrandingMap
const parts = hostname.split('.')
if (parts.length > 2) {
return '.' + parts.slice(-2).join('.')
return '.' + parts.slice(1).join('.')
}
return hostname