]> git.localhorst.tv Git - alttp.git/commitdiff
disable chromium sandbox
authorDaniel Karbach <daniel.karbach@localhorst.tv>
Sat, 14 May 2022 13:51:10 +0000 (15:51 +0200)
committerDaniel Karbach <daniel.karbach@localhorst.tv>
Sat, 14 May 2022 13:51:10 +0000 (15:51 +0200)
because http process is not allowed to change security context

app/Console/Commands/GenerateAosSeed.php

index 77fd376ebbd862fae6e157e0436f590ef281845b..c51ce29a09a04a7acfe55e44fa6d1ab950994d84 100644 (file)
@@ -44,6 +44,7 @@ class GenerateAosSeed extends Command
                        $url = config('aos.surge_url').'/?'.http_build_query($params, '', '&');
 
                        $fac = new BrowserFactory('chromium');
+                       $fac->addOptions(['noSandbox' => true]);
                        $browser = $fac->createBrowser();
 
                        $stage = 'loading page';