mirror of
https://github.com/hcengineering/platform.git
synced 2026-09-10 03:37:43 +02:00
fix: exclude first segment from account cookie domain (#8348)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user