Unset cookie domain to localhost by default (#100)

This commit is contained in:
Nabarun Gogoi 2024-02-22 17:52:49 +05:30 committed by GitHub
parent ef0eac8293
commit f7c45ca045
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -87,7 +87,6 @@ export const createAndStartServer = async (
secure: new URL(appOriginUrl).protocol === 'https:', secure: new URL(appOriginUrl).protocol === 'https:',
// TODO: Set cookie maxAge and handle cookie expiry in frontend // TODO: Set cookie maxAge and handle cookie expiry in frontend
// maxAge: SESSION_COOKIE_MAX_AGE, // maxAge: SESSION_COOKIE_MAX_AGE,
domain: 'localhost',
sameSite: new URL(appOriginUrl).protocol === 'https:' ? 'none' : 'lax' sameSite: new URL(appOriginUrl).protocol === 'https:' ? 'none' : 'lax'
} }
}; };