forked from hibas123/SecureFileWrapper
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",
|
"name": "@hibas123/secure-file-wrapper",
|
||||||
"version": "2.5.1",
|
"version": "2.5.2",
|
||||||
"main": "lib/index.js",
|
"main": "lib/index.js",
|
||||||
"author": "Fabian Stamm <dev@fabianstamm.de>",
|
"author": "Fabian Stamm <dev@fabianstamm.de>",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
|
@ -127,7 +127,6 @@ export default class SecureFileWrapper {
|
|||||||
await this.getJWT();
|
await this.getJWT();
|
||||||
}
|
}
|
||||||
|
|
||||||
query.jwt = this.jwt;
|
|
||||||
let query_str = "?";
|
let query_str = "?";
|
||||||
let first = true;
|
let first = true;
|
||||||
for (let key in query) {
|
for (let key in query) {
|
||||||
@ -136,8 +135,9 @@ export default class SecureFileWrapper {
|
|||||||
first = false;
|
first = false;
|
||||||
}
|
}
|
||||||
var headers = {
|
var headers = {
|
||||||
"pragme": "no-cache",
|
"pragma": "no-cache",
|
||||||
"cache-control": "no-cache"
|
"cache-control": "no-cache",
|
||||||
|
"x-jwt": this.jwt
|
||||||
};
|
};
|
||||||
|
|
||||||
if (body) {
|
if (body) {
|
||||||
|
Loading…
Reference in New Issue
Block a user