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

PDF export: config for authentication #168

Open
wunc opened this issue Nov 5, 2024 · 0 comments
Open

PDF export: config for authentication #168

wunc opened this issue Nov 5, 2024 · 0 comments
Labels
✨ enhancement New feature or request

Comments

@wunc
Copy link
Collaborator

wunc commented Nov 5, 2024

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

@wunc wunc added the ✨ enhancement New feature or request label Nov 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
✨ enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant