Skip to content

Commit

Permalink
Fix ConfigureSecurityDefaults.
Browse files Browse the repository at this point in the history
  • Loading branch information
sarahelsaig committed Dec 29, 2023
1 parent 4df453c commit cfba7e2
Showing 1 changed file with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,11 @@ public static OrchardCoreBuilder ConfigureAntiForgeryAlwaysSecure(this OrchardCo
/// Provides some default security configuration for Orchard Core. Use it in conjunction with <see
/// cref="SecurityApplicationBuilderExtensions.UseSecurityDefaults"/>.
/// </summary>
public static OrchardCoreBuilder ConfigureSecurityDefaults(this OrchardCoreBuilder builder) => builder
.ConfigureServices(services => services.AddAntiClickjackingContentSecurityPolicyProvider())
.ConfigureAntiForgeryAlwaysSecure()
.AddTenantFeatures("OrchardCore.Diagnostics");
public static OrchardCoreBuilder ConfigureSecurityDefaults(this OrchardCoreBuilder builder)
{
builder.ApplicationServices.AddAntiClickjackingContentSecurityPolicyProvider();
return builder
.ConfigureAntiForgeryAlwaysSecure()
.AddTenantFeatures("OrchardCore.Diagnostics");
}
}

0 comments on commit cfba7e2

Please sign in to comment.