Best way to abort/cancel action from ActionFilter
I\'ve got this ActionFilter, and it\'s suppose to end the connection immediately and return a 401 Unau
ActionFilter
On .net core 2.2, 3.0 and 3.1, the below example works fine
public override void OnActionExecuting(ActionExecutingContext context) { context.Result = new UnauthorizedObjectResult("user is unauthorized"); }