question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

cy.visit('url', {headers: {}}) doesnt work per documentation

See original GitHub issue

Current behavior:

cy.visit(options); in options if we pass headers like these it doesnt work with headless browser as well as --headed browser

options = {
  url: 'www.localhost.com',
  headers: {'a': 'b'}
};

Desired behavior:

above code should work as specified

Steps to reproduce:

try above code

Versions

OS: Mac Browsers Tried: Chrome 72/74, Electron (headless/headed) comes with cypress installation

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:25 (12 by maintainers)

github_iconTop GitHub Comments

2reactions
bpskishorecommented, May 17, 2019

is it possible to have a webex call i can walkthrough?or any meeting of your choice

2reactions
bpskishorecommented, May 16, 2019

Thank you I will try again and keep posted. Many thanks for your support

Read more comments on GitHub >

github_iconTop Results From Across the Web

visit
An object that maps HTTP header names to values to be sent along with the request. Note: headers will only be sent for...
Read more >
cypress-io/cypress - Gitter
Hi guys! I am trying to spin up my first ever test with Cypress and I am kinda bummed at not being able...
Read more >
A Practical Guide to Intercepting Network Requests in ...
First things first - matching our url. When using .intercept() command, there are two main questions that need to be resolved. How do...
Read more >
Cypress logs out when using cy.visit()
clear = function (keys, ls, rs) { if (keys) { return } } }) it('A',()=>{ cy.visit('some url') //it works! }) Also when restarting...
Read more >
Cypress cy.intercept Problems
A few common cy.intercept gotchas and how to avoid them ... But if you open the "Routes" section, notice that our intercept was...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found