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
When i use vue-template in v3 chrome extension, 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'".
Because v3 is denied eval completely.
I find maybe is use h function cause it:
h({
components: props.vueTemplateComponents,
setup: () => props.vueTemplateData,
template: <${props.tag}>${outputHtml.value}</${props.tag}>,
})
Is there any way to solve this problem?
Description
When i use vue-template in v3 chrome extension, 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'".
Because v3 is denied eval completely.
I find maybe is use h function cause it:
h({
components: props.vueTemplateComponents,
setup: () => props.vueTemplateData,
template:
<${props.tag}>${outputHtml.value}</${props.tag}>
,})
Is there any way to solve this problem?
Reproduction
no
Used Package Manager
pnpm
System Info
The text was updated successfully, but these errors were encountered: