Change the way the JWT ist sent to securefile
This commit is contained in:
parent
933ecc050a
commit
da315034e4
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@hibas123/secure-file-wrapper",
|
||||
"version": "2.5.1",
|
||||
"version": "2.5.2",
|
||||
"main": "lib/index.js",
|
||||
"author": "Fabian Stamm <dev@fabianstamm.de>",
|
||||
"license": "MIT",
|
||||
|
@ -127,7 +127,6 @@ export default class SecureFileWrapper {
|
||||
await this.getJWT();
|
||||
}
|
||||
|
||||
query.jwt = this.jwt;
|
||||
let query_str = "?";
|
||||
let first = true;
|
||||
for (let key in query) {
|
||||
@ -136,8 +135,9 @@ export default class SecureFileWrapper {
|
||||
first = false;
|
||||
}
|
||||
var headers = {
|
||||
"pragme": "no-cache",
|
||||
"cache-control": "no-cache"
|
||||
"pragma": "no-cache",
|
||||
"cache-control": "no-cache",
|
||||
"x-jwt": this.jwt
|
||||
};
|
||||
|
||||
if (body) {
|
||||
|
Reference in New Issue
Block a user