Skip to content
Merged
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
4 changes: 2 additions & 2 deletions resources/views/layouts/_partials/_fathom.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@
@endphp

@if (in_array(app()->environment(), $environments) && $siteId)
<script @cspNonce src="{{ $url }}" data-site="{{ $siteId }}" type="text/javascript" defer></script>
@endif
<script src="{{ $url }}" data-site="{{ $siteId }}" type="text/javascript" defer></script>
Copy link

Copilot AI Jul 30, 2025

Choose a reason for hiding this comment

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

Removing the @cspNonce directive weakens Content Security Policy protection. Without the nonce, this script may be blocked by CSP headers or could potentially allow unauthorized script execution. Consider keeping the nonce for security compliance.

Suggested change
<script src="{{ $url }}" data-site="{{ $siteId }}" type="text/javascript" defer></script>
<script src="{{ $url }}" data-site="{{ $siteId }}" type="text/javascript" nonce="{{ cspNonce() }}" defer></script>

Copilot uses AI. Check for mistakes.
@endif