mirror of
https://github.com/patarapolw/cjdic2.git
synced 2026-11-09 17:39:35 +00:00
remove csp and assetProtocol, escape problem in production that don't appear in dev
This commit is contained in:
1 parent
a26cfceaf4
commit
9f88b6d93c
7 files changed
+40
-48
No files matched your search
@@ -18,7 +18,7 @@ crate-type = ["staticlib", "cdylib", "rlib"]
|
||||
tauri-build = { version = "2", features = [] }
|
||||
|
||||
[dependencies]
|
||||
tauri = { version = "2", features = ["protocol-asset"] }
|
||||
tauri = { version = "2", features = [] }
|
||||
tauri-plugin-opener = "2"
|
||||
cjdic2-core = { path = "../src-core" }
|
||||
tauri-plugin-http = "2"
|
||||
|
||||
@@ -16,6 +16,10 @@
|
||||
]
|
||||
},
|
||||
"fs:default",
|
||||
{
|
||||
"identifier": "fs:allow-appdata-read",
|
||||
"allow": [{ "path": "$APPDATA/yomitan/**" }]
|
||||
},
|
||||
"clipboard-manager:allow-read-text"
|
||||
]
|
||||
}
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"$schema": "https://schema.tauri.app/config/2",
|
||||
"productName": "cjdic2",
|
||||
"version": "0.1.2",
|
||||
"version": "0.1.3",
|
||||
"identifier": "cc.polv.cjdic2",
|
||||
"build": {
|
||||
"beforeDevCommand": "pnpm dev",
|
||||
@@ -19,11 +19,7 @@
|
||||
}
|
||||
],
|
||||
"security": {
|
||||
"csp": "default-src 'self' ipc: http://ipc.localhost; img-src 'self' asset: http://asset.localhost",
|
||||
"assetProtocol": {
|
||||
"enable": true,
|
||||
"scope": ["$APPDATA/yomitan/**"]
|
||||
}
|
||||
"csp": null
|
||||
}
|
||||
},
|
||||
"bundle": {
|
||||
|
||||
Reference in new issue
Block a user