Base solution for your next web application
Open Closed

AllowAnonymous Home #428


User avatar
0
ddnils created

Hi there, i would like to allow anonymous access to my home site. But it seems navigation is dependent on a valid User since it throws me an error saying: No User is logged in.

I have provided HomeController with [AllowAnonymous] Attribute. Any ideas on this matter?


4 Answer(s)
  • User Avatar
    0
    djfuzzy created

    I too would like a little help with this. It seems like a big downside if anonymous access to certain pages weren't allowed (home, about, contact, etc.). So far this is holding me back from going from MPA to SPA.

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    Do you have any other attribute on HomeController ? Removing [AbpMvcAuthorize] attribute should work normally.

  • User Avatar
    0
    gpcaretti created

    Hi All, I have the same problem. Anyone solved the issue?

  • User Avatar
    0
    hikalkan created
    Support Team

    see <a class="postlink" href="https://github.com/aspnetboilerplate/module-zero-template/issues/56">https://github.com/aspnetboilerplate/mo ... /issues/56</a>