diff --git a/server/front/src/index.ts b/server/front/src/index.ts index 12ba666136..3f90343ade 100644 --- a/server/front/src/index.ts +++ b/server/front/src/index.ts @@ -230,7 +230,7 @@ export function start ( const filesHandler = async (req: any, res: Response): Promise => { try { console.log(req.headers) - const cookies = ((req?.headers?.cookie as string) ?? '').split(';').map((it) => it.split('=')) + const cookies = ((req?.headers?.cookie as string) ?? '').split(';').map((it) => it.trim().split('=')) const token = cookies.find((it) => it[0] === 'presentation-metadata-Token')?.[1] const payload =