From 102a5e9bb83c5d8388dc9aedc7f03cc57bdae8cb Mon Sep 17 00:00:00 2001 From: Lucas Fernandes Nogueira Date: Sun, 13 Feb 2022 02:01:48 -0300 Subject: [PATCH] refactor(cli.rs): change template config CSP to null, closes #3427 (#3429) --- .changes/template-csp-null.md | 5 +++++ tooling/cli/templates/app/src-tauri/tauri.conf.json | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 .changes/template-csp-null.md 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 } } }