Description
In this section:
Antiforgery middleware is added...
is confusing. Me and my coworker thought that calling AddRazorComponents added the middleware as well and we were trying to troubleshoot the app for a long time, even after adding UseAntiforgery manually were confused. Experienced programmers might understand that the middleware is the developer's responsibility but people new to ASP.NET might find this information confusing.
Page URL
https://learn.microsoft.com/en-us/aspnet/core/security/anti-request-forgery?view=aspnetcore-9.0
Content source URL
https://github.com/dotnet/AspNetCore.Docs/blob/main/aspnetcore/security/anti-request-forgery.md
Document ID
bffca13c-223f-c61f-9cb2-9da8811eecfa
Platform Id
a2883bdf-f8ff-d4f0-ef3e-413f88c39bd2
Article author
@tdykstra
Metadata
- ID: 47b14f57-82ac-a2e2-cbc7-22a81a60f4ac
- PlatformId: a2883bdf-f8ff-d4f0-ef3e-413f88c39bd2
- Service: aspnet-core
- Sub-service: security
Related Issues
Description
In this section:
is confusing. Me and my coworker thought that calling
AddRazorComponentsadded the middleware as well and we were trying to troubleshoot the app for a long time, even after addingUseAntiforgerymanually were confused. Experienced programmers might understand that the middleware is the developer's responsibility but people new to ASP.NET might find this information confusing.Page URL
https://learn.microsoft.com/en-us/aspnet/core/security/anti-request-forgery?view=aspnetcore-9.0
Content source URL
https://github.com/dotnet/AspNetCore.Docs/blob/main/aspnetcore/security/anti-request-forgery.md
Document ID
bffca13c-223f-c61f-9cb2-9da8811eecfa
Platform Id
a2883bdf-f8ff-d4f0-ef3e-413f88c39bd2
Article author
@tdykstra
Metadata
Related Issues