You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You definitely can use it with CSP, but you have to precompile your templates. If they are precompiled you just include them like normal JS and nunjucks will use them instead of dynamically creating them: http://mozilla.github.io/nunjucks/api.html#precompiling
I saw a
new Function
in the code, so I expect that nunjucks cannot be used without a Content Security Policy that permits unsafe-eval.As templates are a targeted injection point for malicious code, it would be good if one could use nunjucks while
Function
/eval
are prohibited.The text was updated successfully, but these errors were encountered: