From bfa5e855d4006207254fa50203bbada594f0f670 Mon Sep 17 00:00:00 2001 From: Bill Glesias Date: Thu, 22 Sep 2022 16:01:08 -0400 Subject: [PATCH] Update packages/proxy/lib/http/request-middleware.ts Co-authored-by: Matt Henkes --- packages/proxy/lib/http/request-middleware.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/proxy/lib/http/request-middleware.ts b/packages/proxy/lib/http/request-middleware.ts index a6d0ffcdf46d..b37b1aecd5b9 100644 --- a/packages/proxy/lib/http/request-middleware.ts +++ b/packages/proxy/lib/http/request-middleware.ts @@ -37,8 +37,8 @@ const ExtractCypressMetadataHeaders: RequestMiddleware = function () { if (!this.config.experimentalSessionAndOrigin || !doesTopNeedToBeSimulated(this) || - // this should be unreachable happen as the x-cypress-request header is only attached if the resource type is 'xhr' - // inside the extension or electron equivalent. This should only be needed for defensive purposes + // this should be unreachable, as the x-cypress-request header is only attached if the resource type is 'xhr' + // inside the extension or electron equivalent. This is only needed for defensive purposes. (requestIsXhrOrFetch !== 'true' && requestIsXhrOrFetch !== 'xhr' && requestIsXhrOrFetch !== 'fetch')) { this.next()