Login failed due to HTTPS and HTTP: This request has been blocked; the content must be served over HTTPS.
See original GitHub issueApplication 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:
- Created 3 years ago
- Comments:19 (5 by maintainers)
Top 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 >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
Already did cypress.json
But the browser I am using is Electron. Is there other setting for Electron ?
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.