Safely sandbox and execute user submitted JavaScript?

后端 未结 5 1607
别跟我提以往
别跟我提以往 2020-11-30 00:52

I would like to have the ability to let users submit arbitrary JavaScript code, which is then sent to a Node.JS server and safely executed before the output is sent back to

5条回答
  •  青春惊慌失措
    2020-11-30 00:53

    Depending on your usage, I'd suggest you also consider protecting your sandbox with a virtual environment like gVisor. You can find some info here.

提交回复
热议问题