mirror of
https://iceshrimp.dev/crimekillz/iceshrimp-161sh.git
synced 2024-11-22 20:23:49 +01:00
Disable secure cookie
This commit is contained in:
parent
3147c234f0
commit
29c8bb1aeb
@ -8,7 +8,9 @@ export default function(ctx: Koa.Context, user: ILocalUser, redirect = false) {
|
||||
ctx.cookies.set('i', user.token, {
|
||||
path: '/',
|
||||
domain: config.hostname,
|
||||
secure: config.url.startsWith('https'),
|
||||
// SEE: https://github.com/koajs/koa/issues/974
|
||||
//secure: config.url.startsWith('https'),
|
||||
secure: false,
|
||||
httpOnly: false,
|
||||
expires: new Date(Date.now() + expires),
|
||||
maxAge: expires
|
||||
|
Loading…
Reference in New Issue
Block a user