diff --git a/src/Packages/UnityWebBrowser/Runtime/Core/WebBrowserClient.cs b/src/Packages/UnityWebBrowser/Runtime/Core/WebBrowserClient.cs index 0245019..6ef77b5 100644 --- a/src/Packages/UnityWebBrowser/Runtime/Core/WebBrowserClient.cs +++ b/src/Packages/UnityWebBrowser/Runtime/Core/WebBrowserClient.cs @@ -166,6 +166,12 @@ public Resolution Resolution [Tooltip("Will ignore SSL errors on provided domains in ignoreSSLErrorsDomains")] public bool ignoreSslErrors = false; + /// + /// Disables sandbox + /// + [Tooltip("Disables sandbox")] + public bool noSandbox = false; + /// /// Domains to ignore SSL errors on if is enabled /// @@ -411,6 +417,12 @@ internal void Init() //argsBuilder.AppendArgument("start-delay", 2000); #endif + //Disable sandbox + if (noSandbox) + { + argsBuilder.AppendArgument("no-sandbox", true); + } + //Final built arguments string arguments = argsBuilder.ToString(); @@ -1185,4 +1197,4 @@ private void ReleaseResources() #endregion } -} \ No newline at end of file +}