[Feature Request]: support sandbox #1701
nianxiaoshun-dot
started this conversation in
Feature requests
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
What needs to be done?
When launching a browser via Playwright, sandbox should be supported. It should be an optional setting, rather than being enforced by default.
What problem does this solve?
"No sandbox" removes the browser’s sandbox protections. If the browser loads a malicious page crafted by an attacker, it could allow an attacker to take control of our backend server.
Our company requires that the sandbox be enabled; otherwise, we can’t deploy to production.
Target users/beneficiaries
Enterprise developers who need to deploy online services
Current alternatives/workarounds
No action has been taken
Proposed approach
Add a no_sandbox attribute to the BrowserConfig class which is passed in when creating a new AsyncWebCrawler instance. The no_sandbox attribute controls whether the --no-sandbox flag is used in BrowserManager._build_browser_args()
Beta Was this translation helpful? Give feedback.
All reactions