Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork5.2k
Commit9032cf6
committed
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 classesThis 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-usage1 file changed
+14
-0
lines changedLines changed: 14 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
281 | 281 |
| |
282 | 282 |
| |
283 | 283 |
| |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
284 | 298 |
| |
285 | 299 |
| |
286 | 300 |
| |
|
0 commit comments
Comments
(0)