mirror of
https://github.com/misskey-dev/misskey.git
synced 2024-12-27 19:00:20 +01:00
fix(server): cookieが設定されないのを修正
This commit is contained in:
parent
9cda400c80
commit
3b7c943440
4 changed files with 4 additions and 4 deletions
|
@ -43,7 +43,7 @@ export class SigninService {
|
||||||
|
|
||||||
if (redirect) {
|
if (redirect) {
|
||||||
//#region Cookie
|
//#region Cookie
|
||||||
reply.cookies.set('igi', user.token!, {
|
reply.setCookie('igi', user.token!, {
|
||||||
path: '/',
|
path: '/',
|
||||||
// SEE: https://github.com/koajs/koa/issues/974
|
// SEE: https://github.com/koajs/koa/issues/974
|
||||||
// When using a SSL proxy it should be configured to add the "X-Forwarded-Proto: https" header
|
// When using a SSL proxy it should be configured to add the "X-Forwarded-Proto: https" header
|
||||||
|
|
|
@ -122,7 +122,7 @@ export class DiscordServerService {
|
||||||
response_type: 'code',
|
response_type: 'code',
|
||||||
};
|
};
|
||||||
|
|
||||||
reply.cookies.set('signin_with_discord_sid', sessid, {
|
reply.setCookie('signin_with_discord_sid', sessid, {
|
||||||
path: '/',
|
path: '/',
|
||||||
secure: this.config.url.startsWith('https'),
|
secure: this.config.url.startsWith('https'),
|
||||||
httpOnly: true,
|
httpOnly: true,
|
||||||
|
|
|
@ -120,7 +120,7 @@ export class GithubServerService {
|
||||||
state: uuid(),
|
state: uuid(),
|
||||||
};
|
};
|
||||||
|
|
||||||
reply.cookies.set('signin_with_github_sid', sessid, {
|
reply.setCookie('signin_with_github_sid', sessid, {
|
||||||
path: '/',
|
path: '/',
|
||||||
secure: this.config.url.startsWith('https'),
|
secure: this.config.url.startsWith('https'),
|
||||||
httpOnly: true,
|
httpOnly: true,
|
||||||
|
|
|
@ -112,7 +112,7 @@ export class TwitterServerService {
|
||||||
|
|
||||||
this.redisClient.set(sessid, JSON.stringify(twCtx));
|
this.redisClient.set(sessid, JSON.stringify(twCtx));
|
||||||
|
|
||||||
reply.cookies.set('signin_with_twitter_sid', sessid, {
|
reply.setCookie('signin_with_twitter_sid', sessid, {
|
||||||
path: '/',
|
path: '/',
|
||||||
secure: this.config.url.startsWith('https'),
|
secure: this.config.url.startsWith('https'),
|
||||||
httpOnly: true,
|
httpOnly: true,
|
||||||
|
|
Loading…
Reference in a new issue