Basic auth in baseUrl does not work in electron browser
See original GitHub issueCurrent behavior:
If I have a baseUrl
in cypress.json
:
{
"baseUrl": "http://username:password@test.dev.mypage.com"
}
then a basic cypress run
does not work. I get this error:
Timed out waiting for the browser to connect. Retrying...
This also happens if I run --headed
.
It does work in latest Chrome (66).
Desired behavior:
It should open the page with basic auth data.
Steps to reproduce:
- Add
baseUrl
tocypress.json
:
{
"baseUrl": "http://username:password@test.dev.mypage.com"
}
- Do
cypress run
Versions
Cypress 2.1.0
Issue Analytics
- State:
- Created 5 years ago
- Reactions:5
- Comments:6 (2 by maintainers)
Top Results From Across the Web
Electron basic auth pop up not working - Stack Overflow
Show activity on this post. I am trying to open my node website inside electron app using its url, the node app has...
Read more >Web Security - Cypress Documentation
Browsers adhere to a strict same-origin policy. This means that browsers restrict access between <iframes> when their origin policies do not match.
Read more >authentication failed: Invalid Base URL. - Zapier Community
Basically this means you weren't able to connect Zapier to your app. Good question.
Read more >session | Electron
Manage browser sessions, cookies, cache, proxy settings, etc. ... This class is not exported from the 'electron' module. It is only available as...
Read more >HTTP REST API Calls in ElectronJS - GeeksforGeeks
We assume that you are familiar with the prerequisites as covered in the above-mentioned link. For Electron to work, node and npm need...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
We ran into this issue in our project when updating Cypress from
1.4.2
to2.1.0
. There is a workaround based on (https://github.com/cypress-io/cypress/issues/1115). We extended Cypress’svisit
command with:and we are running it with:
Important note: It works with the
auth
parameter in “cy.visit”.