Commit f130576
committed
fix(viewer): add unsafe-eval to CSP for Vue 3 runtime template compiler
Vue 3 CDN build compiles in-DOM HTML templates via new Function() at
runtime. Without 'unsafe-eval' in script-src the app fails to mount.
This is unavoidable without a build step (pre-compiled SFCs).
Also adds cdn.jsdelivr.net to connect-src to suppress the browser
DevTools warning about blocked source map requests.1 parent 494b49e commit f130576
1 file changed
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
| 8 | + | |
7 | 9 | | |
8 | | - | |
| 10 | + | |
9 | 11 | | |
10 | 12 | | |
11 | 13 | | |
| |||
0 commit comments