Fails to load webpage with content-type "text/html;"
See original GitHub issueCurrent behavior:
When loading a web page from our CDN (Azure) we do not have any issues in standard web browsers but when using Cypress. We receive the following error message:
Seems like it does the like the appended semicolon. I can’t imagine that this additional semicolon used for adding e.g. a charset information is really that problematic.
Desired behavior:
I guess Cypress should tolerate all content-types starting with “text/html” instead of doing a strict string check here.
Test code to reproduce
Try running cypress again one of our CDN urls e.g.:
CYPRESS_BASE_URL=https://hconnectmanage-qa.azureedge.net/ yarn cypress run
The actual test is not relevant. It fails even before starting.
I modified your tiny repo to show it quickly: https://github.com/swernerx/cypress-test-tiny/tree/content-type-issue
Versions
Cypress: v5.1 MacOS 10.15.6 Electron as bundled by Cypress
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:5 (1 by maintainers)
Top GitHub Comments
The code for this is done in cypress-io/cypress#9057, but has yet to be released. We’ll update this issue and reference the changelog when it’s released.
Released in
5.6.0
.This comment thread has been locked. If you are still experiencing this issue after upgrading to Cypress v5.6.0, please open a new issue.