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

Secured Cookies #430

Closed
dbelozerovx1 opened this issue Mar 20, 2024 · 1 comment
Closed

Secured Cookies #430

dbelozerovx1 opened this issue Mar 20, 2024 · 1 comment

Comments

@dbelozerovx1
Copy link

dbelozerovx1 commented Mar 20, 2024

Is there any way to retrieve secured cookies, i can grab cookies stored in context.StorageState, which also has secure(bool) flag but it doesnt make sense if only non-secured cookies are shown, did i mess up somewhere? it just doesnt shown, works on every website with cookie based auth

upd: a bit not clear, my bad, cookies like sessionid, authcode, etc... anything that website is using for cookie based auth not shown in playwright instance, but with my regular browser i can spot it with zero problems

@canstand
Copy link
Collaborator

canstand commented Apr 1, 2024

browserContext.Cookies() can get all cookies, include secure cookie. But there is an edge case in my test, webkit only works when using https.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants