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.
Comments: Tried to create a repro with a new solution, didn't work out. I'll look more into it.
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.
Comments: Tried to create a repro with a new solution, didn't work out. I'll look more into it.