cypress-autorecord
cypress-autorecord copied to clipboard
Returns `application/json` instead of `text/html`
For some reason when using this plugin, I get the following error in my tests:
CypressError: `cy.visit()` failed trying to load: http://localhost:3000/search The `content-type` of the response we received from your web server was: > `application/json`
I am facing the same issue.
My guess is that we are using cy.visit to request an html page. However, the response header's content-type is set to "application/json" where instead it should be "text/html".
I'm not sure yet why this issue is only occurring when using cypress-autorecord.