Browse Source

fix(tauri.js) default CSP with the blob modifier (#255)

Lucas Fernandes Nogueira 5 years ago
parent
commit
8a8fe2cca4
1 changed files with 1 additions and 2 deletions
  1. 1 2
      cli/tauri.js/src/template/defaultConfig.ts

+ 1 - 2
cli/tauri.js/src/template/defaultConfig.ts

@@ -18,8 +18,7 @@ export default {
       title: 'Tauri App'
     },
     security: {
-      csp:
-        "default-src data: filesystem: ws: http: https: 'unsafe-eval' 'unsafe-inline'"
+      csp: "default-src blob: data: filesystem: ws: http: https: 'unsafe-eval' 'unsafe-inline'"
     },
     edge: {
       active: true