mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-31 01:35:36 +02:00
#13218 fix ssl for pdf grpahs
This commit is contained in:
parent
60f8c45836
commit
90ab285a90
@ -4419,7 +4419,18 @@ function generator_chart_to_pdf(
|
||||
$browserFactory = new BrowserFactory($chromium_dir);
|
||||
|
||||
// Starts headless chrome.
|
||||
$browser = $browserFactory->createBrowser(['noSandbox' => true]);
|
||||
$browser = $browserFactory->createBrowser(
|
||||
[
|
||||
'noSandbox' => true,
|
||||
'customFlags' => [
|
||||
'--disable-dev-shm-usage',
|
||||
'--disable-gpu',
|
||||
'--disable-web-security',
|
||||
'--font-render-hinting=medium',
|
||||
],
|
||||
'ignoreCertificateErrors' => true,
|
||||
]
|
||||
);
|
||||
|
||||
// Creates a new page.
|
||||
$page = $browser->createPage();
|
||||
|
Loading…
x
Reference in New Issue
Block a user