You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
minor #20975 [Security] Add usage example for IsCsrfTokenValid attribute on controller classes (santysisi)
This PR was submitted for the 7.3 branch but it was merged into the 7.2 branch instead.
Discussion
----------
[Security] Add usage example for IsCsrfTokenValid attribute on controller classes
This PR updates the documentation to demonstrate how the `IsCsrfTokenValid` attribute can be applied directly to a controller class.
By applying this attribute at the class level, CSRF token validation will be automatically executed for all routes defined within the controller, ensuring consistent security across all actions without needing to annotate each method individually.
The example includes the appropriate use statements and a sample controller implementation for clarity.
Commits
-------
f97b8d5 [Security] iscsrftokenvalid-attribute-controller-usage
0 commit comments