Skip to content

Remove integrity hash from Chart.js CDN script#669

Merged
StuartFerguson merged 2 commits intomainfrom
copilot/remove-hash-match-chart-library
Jan 18, 2026
Merged

Remove integrity hash from Chart.js CDN script#669
StuartFerguson merged 2 commits intomainfrom
copilot/remove-hash-match-chart-library

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Jan 18, 2026

Chart.js library fails to load due to malformed integrity hash in the CDN script tag.

Changes

  • Removed integrity attribute from Chart.js script tag in EstateManagementUI.BlazorServer/Components/App.razor
  • Retained crossorigin="anonymous" for CORS handling

The integrity hash was truncated/malformed (sha384-9nhczxUqK87bcKHh20fSQcTGD4qq5GhOfQLg/P5HG5lF1urn4), causing SRI verification to fail and preventing the library from loading.

- <script src="https://cdn.jsdelivr.net/npm/chart.js@4.4.1/dist/chart.umd.min.js" integrity="sha384-9nhczxUqK87bcKHh20fSQcTGD4qq5GhOfQLg/P5HG5lF1urn4" crossorigin="anonymous"></script>
+ <script src="https://cdn.jsdelivr.net/npm/chart.js@4.4.1/dist/chart.umd.min.js" crossorigin="anonymous"></script>
Original prompt

This section details on the original issue you should resolve

<issue_title>Remove Hash match on charting library</issue_title>
<issue_description>Loading the chart library fails due to hash matching on library, can this be removed.</issue_description>

Comments on the Issue (you are @copilot in this section)


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Co-authored-by: StuartFerguson <16325469+StuartFerguson@users.noreply.github.com>
Copilot AI changed the title [WIP] Remove hash match on charting library Remove integrity hash from Chart.js CDN script Jan 18, 2026
Copilot AI requested a review from StuartFerguson January 18, 2026 20:08
@StuartFerguson StuartFerguson marked this pull request as ready for review January 18, 2026 20:08
@StuartFerguson StuartFerguson merged commit 369851c into main Jan 18, 2026
10 checks passed
@github-actions github-actions Bot deleted the copilot/remove-hash-match-chart-library branch March 20, 2026 01:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remove Hash match on charting library

2 participants