I use a custom AuthorizationFilter like the followings:
public class ActionAuthorizeAttribute : AuthorizeAttribute { protected override bool AuthorizeCore(Syste
If getting the area did not work, you can fetch are from the RouteData in this way:
string currentArea = string.Empty; if (rd.DataTokens.TryGetValue("area", out object area)) { currentArea = area.ToString(); }