playwright-go icon indicating copy to clipboard operation
playwright-go copied to clipboard

Secured Cookies

Open dbelozerovx1 opened this issue 1 year ago • 1 comments

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

dbelozerovx1 avatar Mar 20 '24 14:03 dbelozerovx1

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

canstand avatar Apr 01 '24 03:04 canstand