Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow skipping Headless in browser name in userAgent value #30430

Open
I554344 opened this issue Oct 21, 2024 · 0 comments
Open

Allow skipping Headless in browser name in userAgent value #30430

I554344 opened this issue Oct 21, 2024 · 0 comments
Labels
type: feature New feature that does not currently exist

Comments

@I554344
Copy link

I554344 commented Oct 21, 2024

What would you like?

In our setup we are using external services which validate userAgent values and do not respond correctly to values like "HeadlessChrome". Currently we are setting "userAgent" value in cypress.config.ts file but it will require regular updates to make sure other parts of the userAgent string are tested and up-to-date.

It would be helpful if there was a switch that allows for using the standard userAgent values even in headless mode.

Why is this needed?

Our application implements SSO using an external identity provider. SSO flow requires that the cookies exchanged between the identity provider and the app can be read across domains. Now what happens is that the identity provider sets the cookies correctly: sameSite: 'none' if the user agent represents standard browsers, if the browser name is "HeadlessChrome" then the cookie is set with: sameSite: 'lax' which breaks the SSO flow - identity provider does not recognize the already logged in user and displays the login form.

Other

No response

@jennifer-shehane jennifer-shehane added the type: feature New feature that does not currently exist label Oct 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: feature New feature that does not currently exist
Projects
None yet
Development

No branches or pull requests

2 participants