diff options
Diffstat (limited to 'src/api')
| -rw-r--r-- | src/api/common/signin.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/api/common/signin.ts b/src/api/common/signin.ts index 693e62f39f..ec3dd80309 100644 --- a/src/api/common/signin.ts +++ b/src/api/common/signin.ts @@ -4,7 +4,7 @@ export default function(res, user, redirect: boolean) { const expires = 1000 * 60 * 60 * 24 * 365; // One Year res.cookie('i', user.token, { path: '/', - domain: `.${config.host}`, + domain: `.${config.hostname}`, secure: config.url.substr(0, 5) === 'https', httpOnly: false, expires: new Date(Date.now() + expires), |