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.

Login failed due to HTTPS and HTTP: This request has been blocked; the content must be served over HTTPS.

See original GitHub issue

Application is HTTP and login App is HTTPS

Error:

Mixed Content: The page at 'https:/...' was loaded over HTTPS, but requested an insecure form action 'http://....'. This request has been blocked; the content must be served over HTTPS.

Windows 10 Electron 80

Question: is there is any setting or different way to resolve the issue? Basically looking for a setting to ignore HTTPS vs HTTP?

Cypress Version 4.2.0

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:19 (5 by maintainers)

github_iconTop GitHub Comments

4reactions
ndhunagancommented, Apr 10, 2020

Already did cypress.json

{
  "chromeWebSecurity": false
}

But the browser I am using is Electron. Is there other setting for Electron ?

2reactions
jamesw201commented, Dec 16, 2021

I get the same issue. The site works fine on https manually in Chrome but through Cypress I get: Mixed Content: The page at 'https://##.#####.########.net/__/#/tests/integration/signin_spec.js' was loaded over HTTPS, but requested an insecure frame 'http://##.#####.########.net/myfrontend/'. This request has been blocked; the content must be served over HTTPS.

The http://##.#####.########.net/myfrontend/ loads as an https page outside of Cypress.

In Firefox I also see this message: Strict-Transport-Security: The connection to the site is untrustworthy, so the specified header was ignored.

The certs for this site are generated locally using mkcert (https://github.com/FiloSottile/mkcert).

My page also uses window.location.origin to change from one https page to the next https page.

Can we re-open this ticket? The evidence here points to something occurring in Cypress that doesn’t occur in plain browsers.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Web API Error - This request has been blocked; the content ...
This request has been blocked; the content must be served over HTTPS. Firefox Blocked loading mixed active content. Is this issue related to ......
Read more >
Web API Error - This request has been blocked the content ...
This request has been blocked; the content must be served over HTTPS. Firefox Blocked loading mixed active content. Is this issue related to ......
Read more >
the content must be served over HTTPS' error in Chrome
There is a error like, "This request has been blocked; the content must be served over HTTPS" in the Console on Chrome developer...
Read more >
How to fix a website with blocked mixed content - Web security
The best strategy to avoid mixed content blocking is to serve all the content as HTTPS instead of HTTP. For your own domain,...
Read more >
How to Quickly Fix Mixed Content Warnings (HTTPS/SSL)
Mixed content warnings are common after an HTTPS migration or adding a ... request has been blocked; the content must be served over...
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