How do I run Chrome headless mode in Selenium?
In order to run Chrome in headless mode, you may need to launch your server with the --no-sandbox flag on Mac and Linux or by setting the equivalent env variable SAFE_BROWSING_XPC_NO_SANBOX=1 on Windows.