Jan is an open source alternative to ChatGPT that runs 100% offline on your computer.
fix: csp including img.shields.io and cdn-uploads.huggingface.co in img-src directive (#5967)
Nguyen Ngoc Minheb714776ba75
diff --git a/src-tauri/tauri.conf.json b/src-tauri/tauri.conf.jsonindex 5a2c59a0c..a60340351 100644--- a/src-tauri/tauri.conf.json+++ b/src-tauri/tauri.conf.json@@ -45,7 +45,7 @@"font-src": ["https://fonts.gstatic.com blob: data: tauri://localhost http://tauri.localhost"],- "img-src": "'self' asset: http://asset.localhost blob: data: https://cdn.jsdelivr.net",+ "img-src": "'self' asset: http://asset.localhost blob: data: https://cdn.jsdelivr.net https://img.shields.io https://cdn-uploads.huggingface.co","style-src": "'unsafe-inline' 'self' https://fonts.googleapis.com","script-src": "'self' asset: $APPDATA/**.* http://asset.localhost https://eu-assets.i.posthog.com https://posthog.com"},