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; } }