mirror of
https://github.com/vector-im/element-web.git
synced 2025-10-18 02:41:41 +02:00
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
This commit is contained in:
commit
dff76f7db1
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user