From da315034e412cb58367cc3c5c6449b3b943312cb Mon Sep 17 00:00:00 2001 From: Fabian Stamm Date: Sat, 22 Jun 2024 16:44:18 +0200 Subject: [PATCH] Change the way the JWT ist sent to securefile --- package.json | 2 +- src/index.ts | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index 52dfccc..f5193fd 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@hibas123/secure-file-wrapper", - "version": "2.5.1", + "version": "2.5.2", "main": "lib/index.js", "author": "Fabian Stamm ", "license": "MIT", diff --git a/src/index.ts b/src/index.ts index 6ca8fda..08233e8 100644 --- a/src/index.ts +++ b/src/index.ts @@ -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) {