diff --git a/.changes/template-csp-null.md b/.changes/template-csp-null.md new file mode 100644 index 000000000..3851f2907 --- /dev/null +++ b/.changes/template-csp-null.md @@ -0,0 +1,5 @@ +--- +"cli.rs": patch +--- + +Change the `init` template configuration to disable CSP for better usability for new users. diff --git a/tooling/cli/templates/app/src-tauri/tauri.conf.json b/tooling/cli/templates/app/src-tauri/tauri.conf.json index 18a565fac..9e6bc0225 100644 --- a/tooling/cli/templates/app/src-tauri/tauri.conf.json +++ b/tooling/cli/templates/app/src-tauri/tauri.conf.json @@ -62,7 +62,7 @@ } ], "security": { - "csp": "default-src 'self'" + "csp": null } } }