Quantcast
Channel: ASPNETWebStack Issue Tracker Rss Feed
Viewing all articles
Browse latest Browse all 7215

Commented Issue: AllowAnonymous attribute does not work when Method is called from @Html.Action() [1621]

$
0
0
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: Can you please post a sample repro?

Viewing all articles
Browse latest Browse all 7215

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>