Commit 6d06a66
committed
security: add global AutoValidateAntiforgeryToken filter
Replaces TODO comment with explicit AddControllersWithViews registration that applies AutoValidateAntiforgeryTokenAttribute globally. Ensures all MVC controller POST/PUT/DELETE actions require a valid antiforgery token by default, providing defense-in-depth against CSRF even if individual actions are not annotated.1 parent f2643a6 commit 6d06a66
1 file changed
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
232 | 232 | | |
233 | 233 | | |
234 | 234 | | |
235 | | - | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
236 | 239 | | |
237 | 240 | | |
238 | 241 | | |
| |||
0 commit comments