From 90ab285a900833763c0ca719c711315a5912718c Mon Sep 17 00:00:00 2001 From: Jonathan Date: Tue, 16 Apr 2024 13:40:54 +0200 Subject: [PATCH] #13218 fix ssl for pdf grpahs --- pandora_console/include/functions.php | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/pandora_console/include/functions.php b/pandora_console/include/functions.php index e3418a0f48..3da3e2bfba 100644 --- a/pandora_console/include/functions.php +++ b/pandora_console/include/functions.php @@ -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();