Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/dev' into task/system-text-json-…
Browse files Browse the repository at this point in the history
…migration
  • Loading branch information
sarahelsaig committed Sep 23, 2024
2 parents 3a0bee1 + 050e2af commit eaa1424
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,11 @@ public async ValueTask UpdateAsync(IDictionary<string, string> securityPolicies,

if (await shellFeaturesManager.IsFeatureEnabledAsync("OrchardCore.ReCaptcha"))
{
CspHelper.MergeValues(securityPolicies, ScriptSrc, "www.google.com", "www.gstatic.com");
CspHelper.MergeValues(securityPolicies, FrameSrc, "www.google.com");
const string googleDotCom = "www.google.com";

CspHelper.MergeValues(securityPolicies, ScriptSrc, googleDotCom, "www.gstatic.com");
CspHelper.MergeValues(securityPolicies, FrameSrc, googleDotCom);
CspHelper.MergeValues(securityPolicies, FrameAncestors, googleDotCom);
}
}
}

0 comments on commit eaa1424

Please sign in to comment.