You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When retrieving a response from the backend with window.fetch which results in an empty body, it works when the code is run standalone (in a regular browser). When run from within cypress, it results in missing headers in the response.
Desired behavior
Responses should be consistent between standalone and from within cypress.
From further research I am getting the impression that it is only the Content-Length header which is missing. Therefore, this issue might be a duplicate of #16469.
This issue has not had any activity in 180 days. Cypress evolves quickly and the reported behavior should be tested on the latest version of Cypress to verify the behavior is still occurring. It will be closed in 14 days if no updates are provided.
Current behavior
When retrieving a response from the backend with
window.fetch
which results in an empty body, it works when the code is run standalone (in a regular browser). When run from within cypress, it results in missing headers in the response.Desired behavior
Responses should be consistent between standalone and from within cypress.
Test code to reproduce
I created a test repository that should show the differences: https://github.com/dennisoelkers/cypress-fetch-poc
Cypress Version
8.7.0
Other
No response
The text was updated successfully, but these errors were encountered: