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
{{ message }}
Repository navigation
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 #1861
I am trying to use alasql in an browser environment, when i try to load the script which has alasql bundled within it is giving
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
Based on content security policy we can't use those JS functions mentioned in this link
It seems alasql is using new Function() which triggers the CSP error. how can we resolve this?
AlaSQL is built around creating code. for new functions. If you are not allowed to create new functions then AlaSQL cant help you (until we made a version that preprocesses the functions as part of the build step - but we are not there yet)
Activity
mathiasrw commentedon Jan 23, 2024
AlaSQL is built around creating code. for new functions. If you are not allowed to create new functions then AlaSQL cant help you (until we made a version that preprocesses the functions as part of the build step - but we are not there yet)
githorse commentedon Feb 19, 2024
Duplicates #1482, #1489, and #1667.