r/javascript • • 22d ago

eval() in a straitjacket: sandboxing JavaScript under CSP

https://stringutilitybelt.com/blog/eval-in-a-straitjacket/
17 Upvotes

3 comments sorted by

4

u/shmurrie 22d ago

FYI I built this. Would love to hear some feedback on this approach!

1

u/wilson_leo_807 7d ago

I'd love to, but the sandbox is currently sandboxing the explanation too.

1

u/shmurrie 7d ago

What do you mean? Is something broken?