Skip to content

Commit 102a5e9

Browse files
authored
refactor(cli.rs): change template config CSP to null, closes #3427 (#3429)
1 parent bdd41e2 commit 102a5e9

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changes/template-csp-null.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"cli.rs": patch
3+
---
4+
5+
Change the `init` template configuration to disable CSP for better usability for new users.

tooling/cli/templates/app/src-tauri/tauri.conf.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
}
6363
],
6464
"security": {
65-
"csp": "default-src 'self'"
65+
"csp": null
6666
}
6767
}
6868
}

0 commit comments

Comments
 (0)