CSP of using Sandpack #1007
Answered
by
DeMoorJasper
WangJiaoJo
asked this question in
Q&A
-
Hi, team, |
Beta Was this translation helpful? Give feedback.
Answered by
DeMoorJasper
Sep 27, 2023
Replies: 1 comment 3 replies
-
We found it in the @codesandbox/react/dist/cjs, it has the ‘veal’ function which is blocked if there is no ‘unsafe-eval’ in the CSP header. Do you have any idea about this? Thanks! |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yes in the previews we run
eval
quite a lot, otherwise there's not really a way to run user code... this only really applies to the preview afaik