Skip to content

Commit

Permalink
Rename UseContentTypeOptionsHeader to UseNosniffContentTypeOptionsHeader
Browse files Browse the repository at this point in the history
  • Loading branch information
sarahelsaig committed Dec 29, 2023
1 parent 242f4b4 commit 02e3149
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public static IApplicationBuilder UseContentSecurityPolicyHeader(this IApplicati
/// than early 2014) and legacy versions of Firefox will use the declared content type (if one is set), rather than
/// performing MIME-sniffing.
/// </para></remarks>
public static IApplicationBuilder UseContentTypeOptionsHeader(this IApplicationBuilder app) =>
public static IApplicationBuilder UseNosniffContentTypeOptionsHeader(this IApplicationBuilder app) =>
app.Use(async (context, next) =>
{
const string key = "X-Content-Type-Options";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public static OrchardCoreBuilder ConfigureSecurityDefaults(this OrchardCoreBuild
services => services.AddAntiClickjackingContentSecurityPolicyProvider(),
app => app
.UseContentSecurityPolicyHeader(allowInline: true)
.UseContentTypeOptionsHeader(),
.UseNosniffContentTypeOptionsHeader(),
order: 99);
return builder
.ConfigureAntiForgeryAlwaysSecure()
Expand Down

0 comments on commit 02e3149

Please sign in to comment.