From 44ec57358b27a86e85f27443f92410aaf3cfc5bb Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Mon, 30 Oct 2017 10:40:10 +0000 Subject: [PATCH] Send Access Token in Headers to help prevent it being spit out in errors Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> --- src/utils/createMatrixClient.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/utils/createMatrixClient.js b/src/utils/createMatrixClient.js index 2d294e262b..5f88e1fda3 100644 --- a/src/utils/createMatrixClient.js +++ b/src/utils/createMatrixClient.js @@ -39,7 +39,9 @@ try { * @returns {MatrixClient} the newly-created MatrixClient */ export default function createMatrixClient(opts) { - const storeOpts = {}; + const storeOpts = { + useAuthorizationHeader: true, + }; if (localStorage) { storeOpts.sessionStore = new Matrix.WebStorageSessionStore(localStorage);