javascript - Content Security Policy (CSP) block eval method call -


i using niceditor , in method call eval blocked csp when comment csp code it's working fine.

error: call eval() blocked csp     nicedit.js:779:36 

my csp code

scriptsrc: ["'self'", "'unsafe-inline'"] 

i read here https://developer.chrome.com/extensions/contentsecuritypolicy

thanks in advance

if need use niceditor contains eval (which not idea in first place), can add following directive: 'unsafe-eval'

i really, really, recommend use different editor doesn't rely on eval though. security risk in cases.

if need alternative, have @ prosemirror example.


Comments

Popular posts from this blog

Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12:test (default-test) on project.Error occurred in starting fork -

windows - Debug iNetMgr.exe unhandle exception System.Management.Automation.CmdletInvocationException -

configurationsection - activeMq-5.13.3 setup configurations for wildfly 10.0.0 -