Merge branch 'ent-13218-no-se-visualizan-graficas-con-certificados-no-validos-usando-https' into 'develop'
Ent 13218 no se visualizan graficas con certificados no validos usando https See merge request artica/pandorafms!7214
This commit is contained in:
commit
c83f8806c6
|
@ -4419,7 +4419,18 @@ function generator_chart_to_pdf(
|
||||||
$browserFactory = new BrowserFactory($chromium_dir);
|
$browserFactory = new BrowserFactory($chromium_dir);
|
||||||
|
|
||||||
// Starts headless chrome.
|
// 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.
|
// Creates a new page.
|
||||||
$page = $browser->createPage();
|
$page = $browser->createPage();
|
||||||
|
|
Loading…
Reference in New Issue