Skip to content

Commit

Permalink
Add troubleshooting section to README regarding automatic HTTPS upgra…
Browse files Browse the repository at this point in the history
…des (#272)
  • Loading branch information
akaspick authored Dec 12, 2024
1 parent b21f1df commit af986b5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -547,6 +547,9 @@ N.B.
* The headless option disabled is not compatible with exporting of the PDF.
* If showing the devtools, the browser will halt resulting in a navigation timeout

## Troubleshooting

If you're generating files from a web server, starting with puppeteer version 22, chromium automatically upgrades all HTTP requests to HTTPS requests. If your server is only expecting HTTP requests then adding `launch_args: ['--disable-features=HttpsUpgrades']` will prevent the automatic protocol conversion from occurring.

## Contributing

Expand Down

0 comments on commit af986b5

Please sign in to comment.