From d6e0301e82e1c655606caba684e8c4d00ef955de Mon Sep 17 00:00:00 2001 From: Endel Dreyer Date: Thu, 23 May 2024 12:07:29 -0300 Subject: [PATCH] always include credentials. bump version --- package.json | 2 +- src/HTTP.ts | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index aa15de9..620f479 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "colyseus.js", - "version": "0.15.19", + "version": "0.15.20", "description": "Colyseus Multiplayer SDK for JavaScript/TypeScript", "author": "Endel Dreyer", "license": "MIT", diff --git a/src/HTTP.ts b/src/HTTP.ts index 1007ebf..a6d2259 100644 --- a/src/HTTP.ts +++ b/src/HTTP.ts @@ -36,9 +36,11 @@ export class HTTP { } options.headers['Authorization'] = `Bearer ${this.authToken}`; - options.withCredentials = true; } + // always include credentials + options.withCredentials = true; + return options; } }