mariohmol / ang-jsoneditor

Angular Jsoneditor that works with angular 4 to angular 15
https://stackblitz.com/edit/angular-json-editor
MIT License
155 stars 89 forks source link

Component was failed for restricted content security policy directive #95

Open ivanz1993 opened 2 years ago

ivanz1993 commented 2 years ago

Describe the bug Component was failed for restricted content security. I have several errors on component init: "Refused to evaluate a string as JavaScript" because 'unsave-eval' is not an allowed source of script in the following Content policy directive "script- self"." I can't switch on unsave-eval in my web application cause it denied by security policy.

To Reproduce Open page with component

Expected behavior See page with JSON editor

Console and Error stack trace Refused to evaluate a string as JavaScript" because 'unsave-eval' is not an allowed source of script in the following Content policy directive "script- self"