Skip to content

Commit

Permalink
Fixing Google Analytics connect-src CSP header
Browse files Browse the repository at this point in the history
  • Loading branch information
Piedone committed Apr 16, 2024
1 parent 973b3c0 commit 1b8f892
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ public async ValueTask UpdateAsync(IDictionary<string, string> securityPolicies,
if (googleAnalyticsIsEnabled)
{
CspHelper.MergeValues(securityPolicies, ScriptSrc, "www.googletagmanager.com");
CspHelper.MergeValues(securityPolicies, ConnectSrc, "*.google-analytics.com");
}
}

Expand Down

0 comments on commit 1b8f892

Please sign in to comment.