你的位置: 码友网首页 / 资讯源列表 / Improving application security in Blazor using HTTP headers – Part 2

关于[Improving application security in Blazor using HTTP headers – Part 2]的摘要:

This article shows how to improve the security of an ASP.NET Core Blazor application by adding security headers to all HTTP Razor Page responses (Blazor WASM hosted in a ASP.NET Core hosted backend). The security headers are added using the NetEscapades.AspNetCore.SecurityHeaders Nuget package from Andrew Lock. The headers are used to protect the session, not for authentication. The application is authenticated using OpenID Connect, the security headers are used to protected the session. The authentication is implemented in the Blazor application using the BFF pattern. The WASM client part is just a view of the server rendered trusted backend and cookies are used in the browser. All API calls are same domain only and protected with a cookie and same site.

原文地址: https://damienbod.com/2021/08/23/improving-application-security-in-blazor-using-http-headers-part-2/

收录时间: 2021-08-24 浏览量: 1452 分类: Blazor

| 1 收藏 | 0