pdf.fetcher
Classes
WeasyPrint URL fetcher that only fetches the given URLs. |
|
|
|
|
Module Contents
- class pdf.fetcher.AllowlistURLFetcher(allowed_urls: collections.abc.Iterable[str] = (), **kwargs: Any)[source]
Bases:
weasyprint.urls.URLFetcherWeasyPrint URL fetcher that only fetches the given URLs.
WeasyPrint’s default fetcher follows any URL in the rendered HTML, including
file://(embedding local files as PDF attachments) and internal hosts (SSRF).