Current behavior:
cy.visit({ url, method, headers }) does not appear to honour the method, or headers
Desired behavior:
cy.visit({ url, method, headers }) should send the specified method and headers.
Steps to reproduce: (app code and test code)
cy.visit({
url: '/ui',
method: 'POST',
headers: {
'mock-user': JSON.stringify(mockUser)
}
});
I include an annotated Cypress debug log:

Changing the method to GET still results in the headers not being sent
Versions
I tested Cypress 3.4.1 and 3.2.0.
Ubuntu LTS
Chrome 77
UPDATE: Cause tracked down to: #5367 (comment)
Current behavior:
cy.visit({ url, method, headers })does not appear to honour themethod, orheadersDesired behavior:
cy.visit({ url, method, headers })should send the specified method and headers.Steps to reproduce: (app code and test code)
I include an annotated Cypress debug log:
Changing the method to
GETstill results in the headers not being sentVersions
I tested Cypress 3.4.1 and 3.2.0.
Ubuntu LTS
Chrome 77
UPDATE: Cause tracked down to: #5367 (comment)