October DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsPC HealthRecommendedCrashes, freezes, slowdowns? Check your PC nowSpot repairable issues before they interrupt work.Check PCOctober DealsAmazon USDeal season is back - check today's better picksAmazon US: current deals, useful picks and tech finds.See Picks×
Skip to content
World desk4 min

How to Hide HTTP Requests in Cypress Command Logs

Turn off Show HTTP Requests in the Cypress App, or use the appropriate log option for intercepted traffic and cy.request().
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

In Cypress 15.4 and later, open a test in the Cypress App, select Options in the Command Log header, and turn off Show HTTP Requests. This hides displayed XHR and Fetch entries; it does not stop requests or change test execution. For code-level control, use log: false on an intercept or, separately, on a cy.request() command.

Hide HTTP requests in the Cypress App

  1. Open the test in the Cypress App.
  2. In the Command Log header, open Options.
  3. Deselect Show HTTP Requests.

The setting hides XHR and Fetch entries from the visible Command Log. The requests still run, and you can still use cy.intercept() to spy on or stub them. This is a display preference, not a network filter. Cypress announced the option for Cypress 15.4 and later in November 2025; the release listing includes Cypress 16.0.0, released September 1, 2026. Cypress’s announcement and release listing provide the version details.

Suppress application request logs in test code

To suppress default Command Log entries for matched application XHR and Fetch traffic, Cypress documents this catch-all intercept:

cy.intercept({ resourceType: /xhr|fetch/ }, { log: false })

Define the intercept before the action that triggers the requests, as you would with other intercepts. The option controls logging; it does not cancel, stub, or otherwise alter matching requests. Cypress’s cy.intercept() API reference marks resourceType deprecated since Cypress 14. Check the current reference and your installed Cypress version before adopting this exact matcher; don’t assume the deprecation note means the App toggle is unavailable.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Hide the log for one static stub

If you are intercepting a specific route with a static response, set log: false in the response object:

cy.intercept('GET', '/api/items', {
  log: false,
  statusCode: 200,
  body: [{ id: 1, name: 'Example item' }]
})

This example suppresses logging for that defined stub. The route still returns the specified response. Cypress illustrates the option in its network requests guide.

Hide a cy.request() command entry

cy.request() has a separate log option, which defaults to true. Set it to false in the command options to hide that command’s entry:

cy.request({
  method: 'GET',
  url: '/api/items',
  log: false
})

This is not the same as hiding browser-originated XHR or Fetch entries. Cypress issues cy.request() from its Node process, outside the browser proxy used by cy.intercept(). See the cy.request() API reference and Cypress App FAQ.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Choose the right logging control

What you want to hide Use Scope and caveat
Visible XHR and Fetch entries while exploring or debugging App Options → deselect Show HTTP Requests Available in Cypress 15.4+; display only, no effect on execution.
Default logs for matched application XHR and Fetch traffic cy.intercept({ resourceType: /xhr|fetch/ }, { log: false }) Code-level control; resourceType is deprecated since Cypress 14.
A particular static intercepted response Put log: false in the static response object Applies to that defined route.
A cy.request() command entry Set log: false in its options Separate from browser XHR/Fetch logging.

Troubleshooting

The HTTP request entries are still visible

  • Confirm you changed the Command Log header’s Show HTTP Requests option in the Cypress App, rather than expecting a test configuration or network setting to change the display.
  • If you need a code-level rule, ensure the intercept is defined before the request-triggering action and that the request is in the traffic matched by your route.
  • For the catch-all resource-type example, check the current cy.intercept() documentation because Cypress marks resourceType deprecated since version 14.

The request stopped being intercepted or stubbed

Hiding a Command Log entry should not stop a request. Check the intercept’s route matcher and timing, and make sure the static response is configured as intended. log: false is a logging option, not a way to block traffic.

cy.intercept() did not hide cy.request()

Use log: false in the cy.request() options. It has its own command log setting and does not travel through the browser proxy intercepted by cy.intercept().

Or skip the browser setup

For a separate workflow—capturing clean website screenshots by API—ScreenshotNeo provides a one-call option. It does not change Cypress Command Log visibility or replace the Cypress settings above.

cURL:

curl -G "https://api.screenshotneo.com/v1/shot" -d access_key=YOUR_API_KEY --data-urlencode url=https://stripe.com -o shot.webp

See the ScreenshotNeo API documentation for setup and options. Before capture, it accepts cookie or consent banners as a visitor and removes more than 60 known consent platforms, newsletter popups, and chat widgets; each step can be turned off. Bot checks, blank pages, timeouts, failed loads, and cache hits are not billed. An MCP server provides screenshot tools for AI agents, and the free plan includes 1,000 screenshots per month with no card; paid plans start at $5 for 3,000. Sign up for 1,000 free screenshots a month, with no card required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Frequently Asked Questions

Does hiding HTTP requests change Cypress test results?

No. The App option changes what is displayed in the Command Log; requests still run.

Can I hide only one intercepted request’s log entry?

Yes. For a static stub, include log: false in its response object.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Leave a Reply

Your email address will not be published. Required fields are marked *

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

More from the Wire

  1. Shenzhen desk3 min
    HONOR Expands Beyond Smartphones With Humanoid Robot RevealHONOR said it unveiled its first humanoid robot at MWC 2026 and named shopping assistance, workplace inspections, and supportive companionship as intended uses. Later Robotics D1 claims and a reported…
  2. Cupertino desk5 min
    Apple Unveils AirPods Max 2: The Upgrade That Should Have Happened Years AgoAirPods Max 2 adds H2-powered audio features and Apple claims up to 1.5× more effective ANC, but its design, Smart Case, and 20-hour battery rating are unchanged. Wired lossless audio…
  3. Cupertino desk4 min
    Apple’s OLED Touch MacBooks Are Coming—but the Dynamic Island Is the Real GambleApple has not announced an OLED touchscreen MacBook, but reports point to high-end models arriving in late 2026 or early 2027. The reported Mac Dynamic Island could be useful, but…
Recommended PC Tool
Recommended PC Tool
PC Slower Than It Used to Be?Free scan - under a minute
Crashes, No Sound, or Screen Glitches?Free driver scan

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.