Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Enabling #404

Open
Autumnlight02 opened this issue Apr 21, 2024 · 1 comment
Open

Feature Enabling #404

Autumnlight02 opened this issue Apr 21, 2024 · 1 comment

Comments

@Autumnlight02
Copy link

I may have missed it, but is there a possibility to enable and disable specific features when creating these sandboxes?
As an example, could an additional option for the web platform be provided so that when you run user script you can prevent access to the network etc.

@mhofman
Copy link
Member

mhofman commented Apr 21, 2024

Every global is configurable in shadow realm so you can remove most network access or other capabilities, except for network through dynamic import, which is an undeniable capability available through syntax. The web platform CSP rules do apply inside ShadowRealm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants