Skip to content

Commit

Permalink
always include credentials. bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
endel committed May 23, 2024
1 parent 0b8d396 commit d6e0301
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
4 changes: 3 additions & 1 deletion src/HTTP.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,11 @@ export class HTTP {
}

options.headers['Authorization'] = `Bearer ${this.authToken}`;
options.withCredentials = true;
}

// always include credentials
options.withCredentials = true;

return options;
}
}

0 comments on commit d6e0301

Please sign in to comment.