diff --git a/package.json b/package.json index 7fe447a48..d902f282e 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "testcafe-hammerhead", "description": "A powerful web-proxy used as a core for the TestCafe testing framework (https://github.com/DevExpress/testcafe).", - "version": "30.0.0", + "version": "30.1.0", "homepage": "https://github.com/DevExpress/testcafe-hammerhead", "bugs": { "url": "https://github.com/DevExpress/testcafe-hammerhead/issues" diff --git a/src/client/sandbox/xhr.ts b/src/client/sandbox/xhr.ts index 21ec87d91..1bcb0766d 100644 --- a/src/client/sandbox/xhr.ts +++ b/src/client/sandbox/xhr.ts @@ -193,7 +193,7 @@ export default class XhrSandbox extends SandboxBaseWithDelayedSettings { }); overrideFunction(xmlHttpRequestProto, 'setRequestHeader', function (this: XMLHttpRequest, ...args: Parameters) { - if (isAuthorizationHeader(args[0])) + if (!xhrSandbox.proxyless && isAuthorizationHeader(args[0])) args[1] = addAuthorizationPrefix(args[1]); nativeMethods.xhrSetRequestHeader.apply(this, args);