This code was popping up everywhere this method is called. Seems bad to duplicate it. Really what the caller wants to know is 'is the request valid or a potential CSRF exploit?'. This gets the API closer to that. |
||
|---|---|---|
| .. | ||
| Internal | ||
| Microsoft.AspNetCore.Antiforgery.Test.xproj | ||
| TestOptionsManager.cs | ||
| project.json | ||