Use OWASP Secure Headers middleware in ASP.NET Core
https://pupli.net/2023/05/20/use-owasp-secure-headers-middleware-in-asp-net-core/
Use NetEscapades.AspNetCore.SecurityHeaders to add Security Headers to ASP.NET Core
https://pupli.net/2023/05/20/use-netescapades-aspnetcore-securityheaders-to-add-security-headers-to-asp-net-core/