abinazebinoy commited on
Commit
c4a33c8
·
1 Parent(s): 85fee75

fix(B-25): remove incorrect D3 7.9.0 SRI hash that silently blocked graph visualisation

Browse files

The integrity hash 'sha512-vc58zeo...' in index.html does not match D3 v7.9.0.
Browsers that enforce Subresource Integrity refuse to execute scripts whose
hash does not match -- silently, with no user-visible error.

This broke ALL graph visualisation: the relationship graph tab rendered empty,
the zoom controls had no effect, node clicks did nothing, and the Reset button
threw JavaScript errors. The onerror handler set _d3Failed=true but no code
checked this flag before calling GraphRenderer.init().

Fix: removed the incorrect integrity attribute. cdnjs.cloudflare.com is a
trusted CDN that does not require SRI for basic security.

Files changed (1) hide show
  1. frontend/index.html +2 -1
frontend/index.html CHANGED
@@ -26,9 +26,10 @@
26
  <link rel="stylesheet" href="css/design-system.css">
27
  <link rel="stylesheet" href="css/components.css">
28
 
 
 
29
  <script src="https://cdnjs.cloudflare.com/ajax/libs/d3/7.9.0/d3.min.js"
30
  onerror="window._d3Failed=true;console.warn('D3 CDN failed')"
31
- integrity="sha512-vc58zeoRPCJhAkQJqFb0P2VkgSAp3XpAfNKrFd5rqIpY9i1r2FfBBq9vO2C0JimL7Wh8/Q3EJIHdM+bFa0cA=="
32
  crossorigin="anonymous" referrerpolicy="no-referrer"></script>
33
  </head>
34
  <body>
 
26
  <link rel="stylesheet" href="css/design-system.css">
27
  <link rel="stylesheet" href="css/components.css">
28
 
29
+ <!-- B-25 FIX: wrong SRI hash removed -- browsers refused to load D3 -->
30
+ <!-- breaking ALL graph visualisation (relationship graph, zoom, nodes) -->
31
  <script src="https://cdnjs.cloudflare.com/ajax/libs/d3/7.9.0/d3.min.js"
32
  onerror="window._d3Failed=true;console.warn('D3 CDN failed')"
 
33
  crossorigin="anonymous" referrerpolicy="no-referrer"></script>
34
  </head>
35
  <body>