The new Function(...), user here: https://github.com/blueimp/JavaScript-Templates/blob/master/js/tmpl.js#L24
is a bad practice, and disabled by default if using Content Security Policy (see here)
Can this be replaced? Otherwise who uses CSP must add unsafe-eval to use this library, allowing potential secutiry vulnerabilities.
The
new Function(...), user here: https://github.com/blueimp/JavaScript-Templates/blob/master/js/tmpl.js#L24is a bad practice, and disabled by default if using Content Security Policy (see here)
Can this be replaced? Otherwise who uses CSP must add
unsafe-evalto use this library, allowing potential secutiry vulnerabilities.