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. |
||
|---|---|---|
| .. | ||
| Microsoft.AspNetCore.Antiforgery.FunctionalTests | ||
| Microsoft.AspNetCore.Antiforgery.Test | ||