mirror of
https://github.com/nesquena/hermes-webui.git
synced 2026-05-26 11:40:26 +00:00
7bf8516529
xterm.js, xterm-addon-fit, and xterm-addon-web-links are loaded from cdn.jsdelivr.net via <script> tags. Their bundled source maps also live on jsDelivr and are fetched via the connect mechanism (not a script load), so they fall under connect-src, not script-src. With connect-src limited to 'self', every browser blocks these fetches and emits three CSP violation errors in the console whenever DevTools is open. Adding cdn.jsdelivr.net to connect-src aligns it with script-src, style-src, and font-src, which already allow that origin. Adds a regression test following the pattern of test_issue1112_csp_google_fonts.py. Closes nesquena/hermes-webui#1850