Javascript Heap Error when using nested loops #502
sudo-apt-get-updates
started this conversation in
General
Replies: 1 comment 1 reply
-
Liquid is not designed to support true secure sandboxing. You'll have to trust users who write templates not to be malicious. Otherwise you'll need something like tripwire or process managers. Or we do support deno as you can find more info here: #253 Another option as you mentioned is put this work in client side. This way at least you don't have to worry about DoS attacks. Client-side rendering is not silver bullet, it's still up to your scenarios. For example, if we render a page for user A with a template written by user B, it can potentially crash the Web page for user A. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
If you do nested loops, then Nodejs will throw a Javascript Heap Error and the application will crash. This means that you're forced to use the client-side version of LiquidJS. Is that version safe to use if end-users are allowed to edit templates?
Beta Was this translation helpful? Give feedback.
All reactions