Allow for cross origin cookie handling for other resource types when experimentalSessionAndOrigin
is enabled
#22952
Labels
topic: cy.origin
Problems or enhancements related to cy.origin command
type: enhancement
Requested enhancement of existing feature
What would you like?
Cypress, when using
experimentalSessionAndOrigin
, only handles cross origin cookies if the request comes from the AUT Frame. This only includes requests made by the Document in the AUT and not XHR or other types of requests that may also need cross origin handling.We would like to see cookie handling applied to other resource types coming from the AUT, likely including
XHR
andFetch
resource types (and possibly others).Why is this needed?
Currently, users are unable to log into Google due to cookie mismatches after signing in. This is due to cookies not being sent with the XHR request. This also should apply the cookie logic more consistently to behave more like the browser.
Other
No response
The text was updated successfully, but these errors were encountered: