Skip to content

Commit

Permalink
Update packages/proxy/lib/http/request-middleware.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Matt Henkes <[email protected]>
  • Loading branch information
AtofStryker and mjhenkes committed Sep 22, 2022
1 parent b1f0d26 commit bfa5e85
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/proxy/lib/http/request-middleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down

0 comments on commit bfa5e85

Please sign in to comment.