Cookie domain needs a dot
This commit is contained in:
parent
e91cfd34fd
commit
a26e1f3c0c
|
@ -20,7 +20,11 @@ export function defaultCookies(useSecureCookies: boolean): CookiesOptions {
|
|||
const cookiePrefix = useSecureCookies ? "__Secure-" : "";
|
||||
|
||||
const defaultOptions: CookieOption["options"] = {
|
||||
domain: isENVDev ? (process.env.ORGANIZATIONS_ENABLED ? "cal.local" : undefined) : NEXTAUTH_COOKIE_DOMAIN,
|
||||
domain: isENVDev
|
||||
? process.env.ORGANIZATIONS_ENABLED
|
||||
? ".cal.local"
|
||||
: undefined
|
||||
: NEXTAUTH_COOKIE_DOMAIN,
|
||||
// To enable cookies on widgets,
|
||||
// https://stackoverflow.com/questions/45094712/iframe-not-reading-cookies-in-chrome
|
||||
// But we need to set it as `lax` in development
|
||||
|
|
Loading…
Reference in New Issue
Block a user