feat: Refactor session cookie domain handling to use psl for improved domain parsing

This commit is contained in:
Sean Morley
2025-01-26 20:18:50 -05:00
parent d326d38329
commit f5dc0ceb0a
3 changed files with 11 additions and 16 deletions

View File

@@ -131,8 +131,6 @@ function handleSuccessfulLogin(event: RequestEvent<RouteParams, '/login'>, respo
}
// Do not set a domain for IP addresses or invalid hostnames
console.log('Setting sessionid cookie with domain:', cookieDomain);
event.cookies.set('sessionid', sessionId, {
path: '/',
httpOnly: true,