This commit is contained in:
Benjamin Toby 2024-12-14 17:20:25 +01:00
parent 1aa66be3ba
commit 1fa61ab6fc
2 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
{ {
"name": "@moduletrace/datasquirel", "name": "@moduletrace/datasquirel",
"version": "3.1.4", "version": "3.1.5",
"description": "Cloud-based SQL data management tool", "description": "Cloud-based SQL data management tool",
"main": "index.js", "main": "index.js",
"bin": { "bin": {

View File

@ -144,7 +144,7 @@ function userAuth({
} }
const targetCsrfHeaderKey = Object.keys(finalRequest.headers) const targetCsrfHeaderKey = Object.keys(finalRequest.headers)
.filter((k) => k.replace(/[^a-zA-Z0-9\-]/g, "")) .map((k) => k.replace(/[^a-zA-Z0-9\-]/g, ""))
.find((k) => k == userObject.csrf_k); .find((k) => k == userObject.csrf_k);
if (csrfHeaderIsValue && !targetCsrfHeaderKey) { if (csrfHeaderIsValue && !targetCsrfHeaderKey) {