Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .docfx/docfx.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
],
"globalMetadata": {
"_appTitle": "Extensions for Carter by Codebelt",
"_appFooter": "<span>Generated by <strong>DocFX</strong>. Copyright 2026 Geekle. All rights reserved.</span>",
"_appFooter": "<span>Generated by <strong>DocFX</strong>. Copyright 2026 Geekle. All rights reserved.</span><script async src=\"https://context7.com/widget.js\" data-library=\"/codebeltnet/carter\"></script>",

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Missing Subresource Integrity (SRI) hash on third-party script

The widget.js script is loaded from context7.com without an SRI integrity attribute. If the CDN is ever compromised or the file is silently changed, the altered script would execute on every documentation page with no browser-side validation. Adding integrity="sha384-..." and crossorigin="anonymous" pins the script to a known hash and lets browsers reject unexpected content. You can generate the hash with openssl dgst -sha384 -binary widget.js | openssl base64 -A against the current file.

Prompt To Fix With AI
This is a comment left during a code review.
Path: .docfx/docfx.json
Line: 54

Comment:
**Missing Subresource Integrity (SRI) hash on third-party script**

The `widget.js` script is loaded from `context7.com` without an SRI `integrity` attribute. If the CDN is ever compromised or the file is silently changed, the altered script would execute on every documentation page with no browser-side validation. Adding `integrity="sha384-..."` and `crossorigin="anonymous"` pins the script to a known hash and lets browsers reject unexpected content. You can generate the hash with `openssl dgst -sha384 -binary widget.js | openssl base64 -A` against the current file.

How can I resolve this? If you propose a fix, please make it concise.

Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!

"_appLogoPath": "images/50x50.png",
"_appFaviconPath": "images/favicon.ico",
"_googleAnalyticsTagId": "G-GGL98GEYWE",
Expand Down
4 changes: 4 additions & 0 deletions context7.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"url": "https://context7.com/codebeltnet/carter",
"public_key": "pk_ZYmd0ipMJCtW5NudkKPxA"
}
Loading