Skip to content

Commit 0bf76f1

Browse files
committed
Merge branch 'dev'
2 parents f649951 + 55ad101 commit 0bf76f1

File tree

3 files changed

+10
-5
lines changed

3 files changed

+10
-5
lines changed

BlazorBffOpenIdConnect/Server/SecurityHeadersDefinitions.cs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,12 @@ public static HeaderPolicyCollection GetHeaderPolicyCollection(bool isDev, strin
2626

2727
// due to Blazor
2828
builder.AddScriptSrc()
29-
// .Self() Add this if you want to use the visual studio debugging tools
30-
.WithNonce()
31-
.UnsafeEval();
29+
.WithHash256("sha256-wTSw2ZoYOVpX8Sl5cEiYcCF8ddvCbjJhiX+oYQqD1s4=")
30+
.WithNonce()
31+
.UnsafeEval() // due to Blazor WASM
32+
.StrictDynamic()
33+
.UnsafeInline(); // only a fallback for older browsers when the nonce is used
34+
3235
})
3336
.RemoveServerHeader()
3437
.AddPermissionsPolicy(builder =>

Changelog.md

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

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

5+
**2024-02-01** 3.0.3
6+
- Fix refresh bug
57

68
**2024-01-14** 3.0.2
79
- Improve CSP, using nonce

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,15 +61,15 @@ dotnet new -u Blazor.BFF.OpenIDConnect.Template
6161
https://docs.microsoft.com/en-us/dotnet/core/tutorials/create-custom-template
6262

6363
```
64-
dotnet pack -o ./publish -c Release -p:PackageVersion=3.0.1 --no-build
64+
dotnet pack -o ./publish -c Release -p:PackageVersion=3.0.3 --no-build
6565
```
6666

6767
### install developement
6868

6969
Locally built nupkg:
7070

7171
```
72-
dotnet new -i Blazor.BFF.OpenIDConnect.Template.3.0.1.nupkg
72+
dotnet new -i Blazor.BFF.OpenIDConnect.Template.3.0.3.nupkg
7373
```
7474

7575
Local folder:

0 commit comments

Comments
 (0)