dadamssg/react-use-exceljs

Uncaught EvalError: 'unsafe-eval' is not an allowed source of script in the following Content

Opened this issue · 0 comments

Hi, I am getting following error from excel.min.js for using new Function(). I am not able to use exceljs. Please help


exceljs.min.js:9 Uncaught EvalError: Refused to evaluate a string as JavaScript because 'unsafe-eval' is not an allowed source of script in the following Content Security Policy directive: "script-src 'self':

at new Function ()
at b (exceljs.min.js:9)
at exceljs.min.js:9
at Object.118 (exceljs.min.js:9)
at e (exceljs.min.js:3)
at exceljs.min.js:3
at Object.119../declare.js (exceljs.min.js:10)
at e (exceljs.min.js:3)
at exceljs.min.js:3
at Object. (exceljs.min.js:10)