Skip to content

Fails to load webpage with content-type "text/html;" #8506

@swernerx

Description

@swernerx

Current 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

Metadata

Metadata

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions