/ cypress Public
cy.request unable to handle
Same-Site: None cookie for cross origin requests
Requested enhancement of existing feature
cy.requestshould persist cookies received in response headers. It does it just fine except this used case described below.
Behaviour before chrome update (expected behaviour):
cy.requestto login to our server before running tests:
This was just fine and it would set a cookie for chrome browser.
Then I can run my tests against a local instance of my app at
http://localhost:3003while the app requests cross-origin resources from
dev.xxxx.org. The server
dev.xxxx.orgknows I am logged in because with each request my Chrome provides session id cookie.
Behavior after chrome update (current behavior)
cy.requestas in the case above. But cypress fails to persist the cookie due to the following Chrome security complains:
Long story short: Chrome is complaining it can't store my session id cookie because it's missing
SameSite=None and Secureattributes.
The problem is that the attributes are NOT missing. Look at raw output here:
I believe that cypress swallows the
Same-Siteattribute while persisting cookies from
A hint is is also that
cy.setCookieis completely missing
80.0.3987.132. It was fine with earlier versions of Chrome including (80.*)
The text was updated successfully, but these errors were encountered: