Is It Possible to Sandbox JavaScript Running In the Browser?

前端 未结 15 811
北海茫月
北海茫月 2020-11-22 13:58

I\'m wondering if it\'s possible to sandbox JavaScript running in the browser to prevent access to features that are normally available to JavaScript code running in an HTML

15条回答
  •  挽巷
    挽巷 (楼主)
    2020-11-22 14:37

    As of 2019, vm2 looks like the most popular and most regularly-updated solution to running JavaScript in Node.js. I'm not aware of a front-end solution.

提交回复
热议问题