We should add a configuration for optional basic auth for PDF generation for cases where the site is served behind a private web server (like a staging server) protected by basic auth. The headless chrome PDF generator needs the auth to see that page in this case, or you'll just get a PDF with "Unauthorized" instead.
I tested the following, and it seems to work. Just needs to be coded in. https://spatie.be/docs/browsershot/v4/miscellaneous-options/using-http-authentication
We should add a configuration for optional basic auth for PDF generation for cases where the site is served behind a private web server (like a staging server) protected by basic auth. The headless chrome PDF generator needs the auth to see that page in this case, or you'll just get a PDF with "Unauthorized" instead.
I tested the following, and it seems to work. Just needs to be coded in. https://spatie.be/docs/browsershot/v4/miscellaneous-options/using-http-authentication