Closed qcp closed 1 year ago
This is indeed a problem. We need to use new Function
to safely register a web component for progressive enhancement, since VueECharts currently supports older browsers.
We have removed this enhancement for CSP-strict scenarios since vue-echarts@6.5.5
.
This is indeed a problem. We need to use
new Function
to safely register a web component for progressive enhancement, since VueECharts currently supports older browsers.We have removed this enhancement for CSP-strict scenarios since
vue-echarts@6.5.5
.
How do I enable this CSP strict scenario?
How do I enable this CSP strict scenario?
https://github.com/ecomfe/vue-echarts?tab=readme-ov-file#csp-style-src-or-style-src-elem
请确认
您是如何将 Vue-ECharts 引入项目的?
通过 ES 模块 import
版本信息
问题详情
After upgrade to v6.4.0 or above we got csp error.
Because of
new Function
here.CSP setting (min reproduce):
Given the security requirements, this is a huge problem for us.
问题复现
https://stackblitz.com/edit/vitejs-vite-hqrq2t?file=index.html,src%2FApp.vue&terminal=dev