From ff49e0e3ad1001259bc211e637fc20070cabdb3d Mon Sep 17 00:00:00 2001 From: Sebastian Vollnhals <152031+yetzt@users.noreply.github.com> Date: Fri, 1 Mar 2024 14:46:42 +0100 Subject: [PATCH] hide console.log of headers behind debug flag avoid credential leakage --- civicrm.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/civicrm.js b/civicrm.js index ab75df9..060b9b5 100644 --- a/civicrm.js +++ b/civicrm.js @@ -82,7 +82,7 @@ class crmAPI { } let body = new URLSearchParams(b).toString(); -console.log("headers",this.headers); + if (this.options.debug) console.log("headers",this.headers); const response = await fetch(uri, { method: "POST",