Part of dotnet/aspnetcore#42586
Was decided to not have any in-box default behavior for both (API controllers and Minimal APIs), however, we should add an example of how the users could implement it using IAntiforgery services.
Here is a sample code with the server implementation: https://gist.github.com/brunolins16/3d11b2fd9861afaec22e79abfc2a55fd
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
Part of dotnet/aspnetcore#42586
Was decided to not have any in-box default behavior for both (
API controllersandMinimal APIs), however, we should add an example of how the users could implement it usingIAntiforgeryservices.Here is a sample code with the server implementation: https://gist.github.com/brunolins16/3d11b2fd9861afaec22e79abfc2a55fd
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.