Home:ALL Converter>Lighthouse CLI authentication

Lighthouse CLI authentication

Ask Time:2019-05-30T22:11:25         Author:Konstantin Smolyanin

Json Formatter

I'm trying to perform audit using Lighthouse CLI (not tab in DevTools but Node CLI tool). My app requires authentication.

Maybe somebody knows how to pass authentication in such a case?

I'm using command line like the following

lighthouse https://example.com:8100/some-path/ --budget-path=budget.json --output-path=report.html

Author:Konstantin Smolyanin,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/56379949/lighthouse-cli-authentication
Naeem Ahmed :

Please use the below options with CLI\n--extra-headers={auth cookies}\n\nOR use debugging port with CLI that lighthouse can open pages on same browser instance where authentication is already done\n--port=9222 //9222 is just an example\n",
2022-05-25T17:59:12
yy