adventurous-arm-91375
08/22/2022, 1:39 PMjavascript
cy.session("admin", () => {
const headers = {}
headers[cfAccessCookieId] = cfAccessId; // CF-Access-Client-Id
headers[cfAccessCookieSecret] = cfAccessSecret // CF-Access-Client-Secret
cy.request({
url: fromBaseUrl(),
headers,
}) // <- This request make everything crash
},
{
validate() {
cy.request('/').its('status').should('eq', 200)
},
})
Errors I had in logs are the following:
- TypeError: Invalid character in header content ["CF-Access-Client-Id"]
- Error: socket hang up
I'm really out of ideas, I don't understand why the behaviour is different, node version is the same. cypress too...