server.myapp.com
const domain = config.MY_APP_ENV === 'production' ? 'myapp.com' : undefined; const options = { domain, httpOnly: true, secure: config.MY_APP_ENV !== 'development', sameSite: 'lax', path: '/', maxAge, }; context.ctx.cookies.set(COLLECTION_SESSION_COOKIE, token, options);