Tauri csp setting - different for "new" vs "add to existing" project #2992
-
I noticed a difference in "csp" setting when I followed the add tauri to new project vs add to existing project docs New project has this in tauri.config.js:
Existing project docs end up with this:
I'm not sure what the implication is. I'll keep the setting from the "new project" in my existing project. Is the difference intentional or just a bug? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
If we're on the same base as in your recent issue, then the problem is an outdated cli, because yarn 3 resolves |
Beta Was this translation helpful? Give feedback.
If we're on the same base as in your recent issue, then the problem is an outdated cli, because yarn 3 resolves
^1.0.0-beta.10
to1.0.0-beta-rc.4
. So the fix is still the same -> replace the^
with and=
and runyarn install
again.Because we don't handle yarn 3 very well atm, you need to manually unplug the cli package if you use pnp so it can download the actual binary.
Edit: So the "correct" one is the first one, but either way they are meant to be edited according to your needs to further secure your app.