Skip to content

Commit a81058e

Browse files
Fix CSP to allow ONNX runtime from jsdelivr CDN
- Add cdn.jsdelivr.net to script-src in CSP - Add cdn.jsdelivr.net to host_permissions - Fixes: "no available backend found" error from Transformers.js Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 8261a8e commit a81058e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

manifest.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,11 @@
1515
"https://huggingface.co/*",
1616
"https://cdn-lfs.huggingface.co/*",
1717
"https://cdn-lfs-us-1.huggingface.co/*",
18-
"https://raw.githubusercontent.com/*"
18+
"https://raw.githubusercontent.com/*",
19+
"https://cdn.jsdelivr.net/*"
1920
],
2021
"content_security_policy": {
21-
"extension_pages": "script-src 'self' 'wasm-unsafe-eval'; object-src 'self';"
22+
"extension_pages": "script-src 'self' 'wasm-unsafe-eval' https://cdn.jsdelivr.net; object-src 'self';"
2223
},
2324
"background": {
2425
"service_worker": "src/background/index.ts",

0 commit comments

Comments
 (0)