diff --git a/.github/workflows/GithubActionsRelease.yml b/.github/workflows/GithubActionsRelease.yml index 87bb27a..9509143 100644 --- a/.github/workflows/GithubActionsRelease.yml +++ b/.github/workflows/GithubActionsRelease.yml @@ -60,7 +60,7 @@ jobs: persist-credentials: false - name: Use dotnet - uses: actions/setup-dotnet@v2 + uses: actions/setup-dotnet@v3 with: dotnet-version: '7.0.x' include-prerelease: true diff --git a/.github/workflows/GithubActionsWIP.yml b/.github/workflows/GithubActionsWIP.yml index b9fe29f..15ee9d2 100644 --- a/.github/workflows/GithubActionsWIP.yml +++ b/.github/workflows/GithubActionsWIP.yml @@ -55,7 +55,7 @@ jobs: persist-credentials: false - name: Use dotnet - uses: actions/setup-dotnet@v2 + uses: actions/setup-dotnet@v3 with: dotnet-version: '7.0.x' include-prerelease: true diff --git a/HttpSecurity.AspNet/ContentSecurityPolicies/PrefetchSrc.cs b/HttpSecurity.AspNet/ContentSecurityPolicies/PrefetchSrc.cs deleted file mode 100644 index e31e7d2..0000000 --- a/HttpSecurity.AspNet/ContentSecurityPolicies/PrefetchSrc.cs +++ /dev/null @@ -1,31 +0,0 @@ -namespace HttpSecurity.AspNet; - - -/// -/// prefetch-src policy. -/// -[ContentSecurityPolicyOptions] -[AddHashValue] -[AddHostSource] -[AddNone] -[AddNonce] -[AddReportSample] -[AddSelf] -[AddSchemeSource] -[AddStrictDynamic] -[AddUnsafeEval] -[AddUnsafeHashes] -[AddUnsafeInline] -[AddUri] -public sealed partial class PrefetchSrcOptions : ContentSecurityPolicyOptionsBase -{ -} - - -/// -/// prefetch-src policy. -/// -[ContentSecurityPolicy("prefetch-src")] -public sealed partial class PrefetchSrc : ContentSecurityPolicyBase -{ -} diff --git a/HttpSecurity.AspNet/HttpSecurity.AspNet.csproj b/HttpSecurity.AspNet/HttpSecurity.AspNet.csproj index fb781b4..a0cbdcb 100644 --- a/HttpSecurity.AspNet/HttpSecurity.AspNet.csproj +++ b/HttpSecurity.AspNet/HttpSecurity.AspNet.csproj @@ -13,7 +13,7 @@ - + diff --git a/HttpSecurity.Example/Program.cs b/HttpSecurity.Example/Program.cs index c82e7fc..eaddede 100644 --- a/HttpSecurity.Example/Program.cs +++ b/HttpSecurity.Example/Program.cs @@ -39,7 +39,6 @@ .AddSchemeSource(SchemeSource.Data, "w3.org/svg/2000")) .AddManifestSrc(o => o.AddSelf()) .AddMediaSrc(o => o.AddSelf()) - .AddPrefetchSrc(o => o.AddSelf()) .AddObjectSrc(o => o.AddNone()) .AddReportUri(o => o.AddUri((baseUri, baseDomain) => $"https://{baseUri}/api/CspReporting/UriReport")) .AddScriptSrc(o => o diff --git a/ReleaseNotes.md b/ReleaseNotes.md index 9d51ff5..977edb1 100644 --- a/ReleaseNotes.md +++ b/ReleaseNotes.md @@ -4,6 +4,20 @@ title: ReleaseNotes --- # Release Notes +#### [1.1.0](https://github.com/Material-Blazor/HttpSecurity.AspNet/tree/1.1.0) + +Released 2023-06-07 + +**Updates** + +Removed deprecated prefetch-src headers. + +**Breaking Changes** + +**Known issues** + +
+ #### [1.0.0](https://github.com/Material-Blazor/HttpSecurity.AspNet/tree/1.0.0) Released 2023-01-19 diff --git a/SourceGenerator/SourceGenerator.csproj b/SourceGenerator/SourceGenerator.csproj index 74c6818..1d981c3 100644 --- a/SourceGenerator/SourceGenerator.csproj +++ b/SourceGenerator/SourceGenerator.csproj @@ -15,7 +15,7 @@ all runtime; build; native; contentfiles; analyzers; buildtransitive
- +