Skip to content

Commit

Permalink
Merge branch 'task/system-text-json-migration' into issue/OSOE-818
Browse files Browse the repository at this point in the history
  • Loading branch information
sarahelsaig committed Sep 23, 2024
2 parents 96d6419 + eaa1424 commit cbca46a
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 cbca46a

Please sign in to comment.