From 6d5417f0b7e4d30ae8987bc696641d42810b2a6f Mon Sep 17 00:00:00 2001 From: damienbod Date: Thu, 24 Oct 2024 17:51:59 +0200 Subject: [PATCH] UPdate packages --- .../GenerateCertiticate.csproj | 2 +- api/Api.csproj | 14 ++++++------- identityserver/IdentityServer.csproj | 18 ++++++++--------- .../Pages/SecurityHeadersAttribute.cs | 10 +++++----- ui/WebCodeFlowPkceClient.csproj | 20 +++++++++---------- 5 files changed, 32 insertions(+), 32 deletions(-) diff --git a/GenerateCertiticate/GenerateCertiticate.csproj b/GenerateCertiticate/GenerateCertiticate.csproj index 4ffcbd5..27572f0 100644 --- a/GenerateCertiticate/GenerateCertiticate.csproj +++ b/GenerateCertiticate/GenerateCertiticate.csproj @@ -9,7 +9,7 @@ - + diff --git a/api/Api.csproj b/api/Api.csproj index 41376a7..7a1ecb0 100644 --- a/api/Api.csproj +++ b/api/Api.csproj @@ -8,15 +8,15 @@ - - - - - + + + + + - + - + diff --git a/identityserver/IdentityServer.csproj b/identityserver/IdentityServer.csproj index 81f9722..218b748 100644 --- a/identityserver/IdentityServer.csproj +++ b/identityserver/IdentityServer.csproj @@ -6,16 +6,16 @@ - - - - + + + + - - - - - + + + + + all runtime; build; native; contentfiles; analyzers; buildtransitive diff --git a/identityserver/Pages/SecurityHeadersAttribute.cs b/identityserver/Pages/SecurityHeadersAttribute.cs index ef07079..ddcfca0 100644 --- a/identityserver/Pages/SecurityHeadersAttribute.cs +++ b/identityserver/Pages/SecurityHeadersAttribute.cs @@ -17,13 +17,13 @@ public override void OnResultExecuting(ResultExecutingContext context) // https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Content-Type-Options if (!context.HttpContext.Response.Headers.ContainsKey("X-Content-Type-Options")) { - context.HttpContext.Response.Headers.Add("X-Content-Type-Options", "nosniff"); + context.HttpContext.Response.Headers.Append("X-Content-Type-Options", "nosniff"); } // https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Frame-Options if (!context.HttpContext.Response.Headers.ContainsKey("X-Frame-Options")) { - context.HttpContext.Response.Headers.Add("X-Frame-Options", "SAMEORIGIN"); + context.HttpContext.Response.Headers.Append("X-Frame-Options", "SAMEORIGIN"); } // https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy @@ -36,19 +36,19 @@ public override void OnResultExecuting(ResultExecutingContext context) // once for standards compliant browsers if (!context.HttpContext.Response.Headers.ContainsKey("Content-Security-Policy")) { - context.HttpContext.Response.Headers.Add("Content-Security-Policy", csp); + context.HttpContext.Response.Headers.Append("Content-Security-Policy", csp); } // and once again for IE if (!context.HttpContext.Response.Headers.ContainsKey("X-Content-Security-Policy")) { - context.HttpContext.Response.Headers.Add("X-Content-Security-Policy", csp); + context.HttpContext.Response.Headers.Append("X-Content-Security-Policy", csp); } // https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Referrer-Policy var referrer_policy = "no-referrer"; if (!context.HttpContext.Response.Headers.ContainsKey("Referrer-Policy")) { - context.HttpContext.Response.Headers.Add("Referrer-Policy", referrer_policy); + context.HttpContext.Response.Headers.Append("Referrer-Policy", referrer_policy); } } } diff --git a/ui/WebCodeFlowPkceClient.csproj b/ui/WebCodeFlowPkceClient.csproj index c8b5d22..5974fc7 100644 --- a/ui/WebCodeFlowPkceClient.csproj +++ b/ui/WebCodeFlowPkceClient.csproj @@ -7,21 +7,21 @@ - - + + - - + + all runtime; build; native; contentfiles; analyzers; buildtransitive - - - - - + + + + + - +