Skip to content

Commit ce9d600

Browse files
committed
code clean up
1 parent c734f6d commit ce9d600

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

AspNetCoreRazor/SecurityHeadersDefinitions.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ public static HeaderPolicyCollection GetHeaderPolicyCollection(bool isDev)
99
// Avoid building a new HeaderPolicyCollection on every request for performance reasons.
1010
// Where possible, cache and reuse HeaderPolicyCollection instances.
1111
if (policy != null) return policy;
12-
12+
1313
policy = new HeaderPolicyCollection()
1414
.AddFrameOptionsDeny()
1515
.AddContentTypeOptionsNoSniff()

AspNetCoreRazorMultiClients/SecurityHeadersDefinitions.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ public static HeaderPolicyCollection GetHeaderPolicyCollection(bool isDev)
2323
builder.AddBlockAllMixedContent();
2424
builder.AddImgSrc().Self().From("data:");
2525
builder.AddFormAction().Self();
26-
builder.AddFontSrc().Self();
27-
builder.AddBaseUri().Self();
26+
builder.AddFontSrc().Self();
27+
builder.AddBaseUri().Self();
2828
builder.AddFrameAncestors().None();
2929

3030
builder.AddStyleSrc().WithNonce().UnsafeInline();

BlazorBffAzureADWithApi/Server/Program.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
services.AddSecurityHeaderPolicies()
2525
.SetPolicySelector((PolicySelectorContext ctx) =>
2626
{
27-
return SecurityHeadersDefinitions.GetHeaderPolicyCollection(env.IsDevelopment(),
27+
return SecurityHeadersDefinitions.GetHeaderPolicyCollection(env.IsDevelopment(),
2828
configuration["AzureAd:Instance"]);
2929
});
3030

0 commit comments

Comments
 (0)