Skip to content

Commit

Permalink
Validate tenant
Browse files Browse the repository at this point in the history
  • Loading branch information
oklemenz2 committed Oct 2, 2024
1 parent ab6b3ac commit 2bfacf4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,7 @@ function cov2ap(options = {}) {
req.tenant = String(req.tenant);
}
if (["constructor", "prototype", "__proto__"].includes(req.tenant)) {
logError(req, "Authorization", new Error("Invalid tenant"));
logWarn(req, "Authorization", "Invalid tenant", { tenant: req.tenant });
req.tenant = undefined;
}
next();
Expand Down

0 comments on commit 2bfacf4

Please sign in to comment.