diff options
| author | syuilo <Syuilotan@yahoo.co.jp> | 2018-03-26 13:22:38 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-03-26 13:22:38 +0900 |
| commit | 13e80bb53b0d502724a56a751b7c99ffa1eedf9f (patch) | |
| tree | 0047b2a1cf267de83d4caad5dfde9b31327f6f7e /src/api | |
| parent | Merge pull request #1286 from akihikodaki/master (diff) | |
| parent | Specify Cookie domain with hostname (diff) | |
| download | misskey-13e80bb53b0d502724a56a751b7c99ffa1eedf9f.tar.gz misskey-13e80bb53b0d502724a56a751b7c99ffa1eedf9f.tar.bz2 misskey-13e80bb53b0d502724a56a751b7c99ffa1eedf9f.zip | |
Merge pull request #1290 from akihikodaki/cookie
Specify Cookie domain with hostname
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), |