-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
[Question] Can't add 'set-cookie' headers via page.route fulfill? #4842
Comments
Hi, good catch, seems definitely a valid use-case and from my point of view not yet possible. An array should be probably be accepted in the k/v pair too which then allows to set a header multiple times. |
Any particular reason you are not using https://playwright.dev/docs/next/api/class-browsercontext#browsercontextaddcookiescookies? I acknowledge the bug, but figuring out why you hit it at the first place. |
@pavelfeldman Good question, I will check it as a workaround for these type of cookie, I wonder if it will work as I assume the login response is being consumed and executed to asses if a login action should be fired. Might be that setting those cookies won't have the desired affect. Will check none the less. |
Same issue as #4987. |
Context:
Playwright Version: ^1.7.0
Operating System: Ubuntu 16.04.4 LTS
Node.js version: v12.18.1
Browser: Chromium
Code Snippet
Describe the bug
hi,
As I'm trying to add multiple 'set-cookie' to the response header I noticed that even 1 'set-cookie' wasn't added. The rest of the headers are added just fine.
Also, any idea on how to add multiple headers to a response?
The text was updated successfully, but these errors were encountered: