Skip to content

Commit bb220f4

Browse files
committed
release 2.2.0, fixed security headers
1 parent 3f2a1e6 commit bb220f4

File tree

6 files changed

+17
-13
lines changed

6 files changed

+17
-13
lines changed

Changelog.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22

33
[Readme](https://github.com/damienbod/Blazor.BFF.AzureB2C.Template/blob/main/README.md)
44

5+
**2023-11-03** 2.2.0
6+
- Fix XSS block security header
7+
- Updated packages
8+
9+
510
**2023-06-21** 2.1.0
611
- Switched to Graph SDK 5
712
- Updated packages

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ nuget pack content/Blazor.BFF.AzureB2C.Template.nuspec
198198
Locally built nupkg:
199199

200200
```
201-
dotnet new install Blazor.BFF.AzureB2C.Template.2.1.0.nupkg
201+
dotnet new install Blazor.BFF.AzureB2C.Template.2.2.0.nupkg
202202
```
203203

204204
Local folder:

content/Blazor.BFF.AzureB2C.Template.nuspec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<package xmlns="http://schemas.microsoft.com/packaging/2012/06/nuspec.xsd">
33
<metadata>
44
<id>Blazor.BFF.AzureB2C.Template</id>
5-
<version>2.1.0</version>
5+
<version>2.2.0</version>
66
<title>Blazor.BFF.AzureB2C.Template</title>
77
<license type="file">LICENSE</license>
88
<description>Blazor BFF template for WASM ASP.NET Core hosted</description>
@@ -15,7 +15,7 @@
1515
<requireLicenseAcceptance>false</requireLicenseAcceptance>
1616
<copyright>2023 damienbod</copyright>
1717
<summary>This template provides a simple Blazor template with BFF server authentication WASM hosted</summary>
18-
<releaseNotes>Updated to Graph SDK 5, updated packages</releaseNotes>
18+
<releaseNotes>Fixed XSS block security header, updated packages</releaseNotes>
1919
<repository type="git" url="https://github.com/damienbod/Blazor.BFF.AzureB2C.Template" />
2020
<packageTypes>
2121
<packageType name="Template" />

content/BlazorBffAzureB2C/Client/BlazorBffAzureB2C.Client.csproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@
88
</PropertyGroup>
99

1010
<ItemGroup>
11-
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" Version="7.0.7" />
12-
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.DevServer" Version="7.0.7" PrivateAssets="all" />
11+
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" Version="7.0.13" />
12+
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.DevServer" Version="7.0.13" PrivateAssets="all" />
1313
<PackageReference Include="Microsoft.Extensions.Http" Version="7.0.0" />
14-
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.Authentication" Version="7.0.7" />
14+
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.Authentication" Version="7.0.13" />
1515
</ItemGroup>
1616

1717
<ItemGroup>

content/BlazorBffAzureB2C/Server/BlazorBffAzureB2C.Server.csproj

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@
1212
</ItemGroup>
1313

1414
<ItemGroup>
15-
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.Server" Version="7.0.7" />
16-
<PackageReference Include="Microsoft.AspNetCore.Authentication.OpenIdConnect" Version="7.0.7" NoWarn="NU1605" />
17-
<PackageReference Include="Microsoft.Identity.Web" Version="2.12.4" />
18-
<PackageReference Include="Microsoft.Identity.Web.UI" Version="2.12.4" />
19-
<PackageReference Include="Microsoft.Identity.Web.GraphServiceClient" Version="2.12.4" />
20-
<PackageReference Include="NetEscapades.AspNetCore.SecurityHeaders" Version="0.19.0" />
15+
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.Server" Version="7.0.13" />
16+
<PackageReference Include="Microsoft.AspNetCore.Authentication.OpenIdConnect" Version="7.0.13" NoWarn="NU1605" />
17+
<PackageReference Include="Microsoft.Identity.Web" Version="2.15.3" />
18+
<PackageReference Include="Microsoft.Identity.Web.UI" Version="2.15.3" />
19+
<PackageReference Include="Microsoft.Identity.Web.GraphServiceClient" Version="2.15.3" />
20+
<PackageReference Include="NetEscapades.AspNetCore.SecurityHeaders" Version="0.21.0" />
2121
</ItemGroup>
2222

2323
</Project>

content/BlazorBffAzureB2C/Server/SecurityHeadersDefinitions.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ public static HeaderPolicyCollection GetHeaderPolicyCollection(bool isDev, strin
1313

1414
var policy = new HeaderPolicyCollection()
1515
.AddFrameOptionsDeny()
16-
.AddXssProtectionBlock()
1716
.AddContentTypeOptionsNoSniff()
1817
.AddReferrerPolicyStrictOriginWhenCrossOrigin()
1918
.AddCrossOriginOpenerPolicy(builder => builder.SameOrigin())

0 commit comments

Comments
 (0)