Skip to content

Commit a396a54

Browse files
authored
fix: modify CSP to allow connect-src blob (#549)
* Modify CSP to allow connect-src blob Updated Content Security Policy to include 'blob' in connect-src. Fixing #548 * chore(ci): Disable Updater for Fork PRs * fix: disable createUpdaterArtifacts for fork PRs * fix: always disable createUpdaterArtifacts * fix: fix typos
1 parent 3930144 commit a396a54

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,4 +48,4 @@ jobs:
4848
# TAURI_SIGNING_PRIVATE_KEY_PASSWORD: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY_PASSWORD }}
4949
NODE_OPTIONS: "--max_old_space_size=4096"
5050
with:
51-
args: ${{ matrix.args }}
51+
args: ${{ matrix.args }} --config '{"bundle":{"createUpdaterArtifacts":false}}'

src-tauri/tauri.conf.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
},
6060
"app": {
6161
"security": {
62-
"csp": "default-src 'self' blob: data: filesystem: ws: wss: http: https: tauri:; script-src 'self' 'unsafe-eval' 'unsafe-inline' blob: data: filesystem: ws: wss: http: https: tauri:; img-src 'self' data: blob: filesystem: http: https:; connect-src 'self' ipc: ws: wss: http: https: http://ipc.localhost"
62+
"csp": "default-src 'self' blob: data: filesystem: ws: wss: http: https: tauri:; script-src 'self' 'unsafe-eval' 'unsafe-inline' blob: data: filesystem: ws: wss: http: https: tauri:; img-src 'self' data: blob: filesystem: http: https:; connect-src 'self' blob: ipc: ws: wss: http: https: http://ipc.localhost"
6363
}
6464
}
6565
}

0 commit comments

Comments
 (0)