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
Please use the below options with CLI
--extra-headers={auth cookies}
OR use debugging port with CLI that lighthouse can open pages on same browser instance where authentication is already done
--port=9222 //9222 is just an example