Skip to content

Confusing information #36185

@josufh

Description

@josufh

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions