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

Unable to set cookies when they are added as "--extra-headers" #9178

Closed
mariuspahontu opened this issue Jun 11, 2019 · 1 comment
Closed

Comments

@mariuspahontu
Copy link

Hi,

I'm facing an issue regarding setting cookies using --extra-headers option.

I added multiple request headers in the JSON file, everyone of them is set correctly apart of cookie header.

The command which i'm using to set the extra headers is
lighthouse --throttling-method=provided --emulated-form-factor=none https://www.google.com --extra-headers=path\to\file\headers.json

The contents of the headers json is below
{ "Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8", "Accept-Encoding": "gzip, deflate, br", "Accept-Language": "en-US,en;q=0.9", "Cache-Control": "max-age=0", "Connection": "keep-alive", "Cookie": "newCookie=True", "Host": "www.example.com", "Domain": "www.example.com", "Upgrade-Insecure-Requests": "0", "If-Range": "\"68028a-125f89-58b04205e822f\"" }

Can you please specify what am I doing wrong and how to set the cookies?

Thanks,
Marius

@patrickhulce
Copy link
Collaborator

Thanks for filing! This is actively being worked on, see #9170 and #6207 (comment) for discussion and progress.

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