Skip to content

Commit

Permalink
fix for ga script source
Browse files Browse the repository at this point in the history
  • Loading branch information
paullocknimble committed Jul 16, 2024
1 parent c4b2d1b commit b72d939
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,18 @@ public static HeaderPolicyCollection GetHeaderPolicyCollection(bool isDev)
{
builder.AddObjectSrc().None();
builder.AddBlockAllMixedContent();
builder.AddImgSrc().Self().From("data:").From(GoogleAnalyticsUri)
builder.AddImgSrc().Self()
.From("data:")
.From(GoogleAnalyticsUri)
.From(GoogleTagManagerUri);
builder.AddFormAction().Self();
builder.AddFormAction().OverHttps();
builder.AddFontSrc().Self();
builder.AddStyleSrc().Self();
builder.AddBaseUri().Self();
builder.AddScriptSrc().From(GoogleTagManagerUri).UnsafeInline().WithNonce();
builder.AddScriptSrc().From(ApplicationInsightsUri).UnsafeInline().WithNonce();
builder.AddScriptSrc()
.From(GoogleTagManagerUri)
.From(ApplicationInsightsUri).UnsafeInline().WithNonce();
builder.AddFrameAncestors().None();
})
.AddPermissionsPolicy(builder =>
Expand Down

0 comments on commit b72d939

Please sign in to comment.