spot: add acc key

This commit is contained in:
nick-delirium 2024-09-20 17:51:52 +02:00
parent cff1e4801b
commit d3f3b613ab
No known key found for this signature in database
GPG key ID: 93ABD695DF5FDBA0

View file

@ -68,6 +68,7 @@ const sensitiveParams = new Set([
"auth",
"proxy-authorization",
"set-cookie",
"account_key",
]);
function filterHeaders(headers: Record<string, string>) {
@ -140,7 +141,7 @@ function obscureSensitiveData(obj: Record<string, any> | any[]) {
}
function tryFilterUrl(url: string) {
if (!url) return ''
if (!url) return "";
try {
const urlObj = new URL(url);
if (urlObj.searchParams) {
@ -194,10 +195,10 @@ export function createSpotNetworkRequest(
let body;
if (trackedRequest.reqBody) {
try {
body = filterBody(trackedRequest.reqBody)
body = filterBody(trackedRequest.reqBody);
} catch (e) {
body = "Error parsing body";
console.error(e)
console.error(e);
}
} else {
body = "";