I Created a controller.
Added authorize attribute on controller level.
Then on one method I added AllowAnonymous attribute.
When accessing that action directly from browser it works fine and allows anonymous users.
But when I tried to render it as partial in another view using @Html.Action() it redirected to login page.
Added authorize attribute on controller level.
Then on one method I added AllowAnonymous attribute.
When accessing that action directly from browser it works fine and allows anonymous users.
But when I tried to render it as partial in another view using @Html.Action() it redirected to login page.