Merge pull request #1552 from matrix-org/t3chguy/header_access_token

Send Access Token in Headers to help prevent it being spit out in errors
pull/21833/head
Richard van der Hoff 2017-11-22 16:44:36 +00:00 committed by GitHub
commit dff76f7db1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -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);