fix: refs #8571 safely delete Authorization header from config in useCau #1429

Merged
jorgep merged 1 commits from 8571-hotfix-preventNull into master 2025-02-18 12:01:26 +00:00
1 changed files with 1 additions and 1 deletions

View File

@ -11,7 +11,7 @@ export async function useCau(res, message) {
const { config, headers, request, status, statusText, data } = res || {};
const { params, url, method, signal, headers: confHeaders } = config || {};
const { message: resMessage, code, name } = data?.error || {};
delete confHeaders.Authorization;
delete confHeaders?.Authorization;
const additionalData = {
path: location.hash,