I'm trying to use the [Authorize] and [AllowAnonymous] attributes in my EPiServer site.
All, of my controllers are marked with the [Authorize] attribute, except of one. This one is marked with the [AllowAnonymous] attribute. When I'm trying to access this controller without authenticating, I still get redirected to the login-screen.
This is (a part of) my code:
[AllowAnonymous]
public ActionResult Index(StartPage currentPage)
Hi.
I'm trying to use the [Authorize] and [AllowAnonymous] attributes in my EPiServer site.
All, of my controllers are marked with the [Authorize] attribute, except of one. This one is marked with the [AllowAnonymous] attribute. When I'm trying to access this controller without authenticating, I still get redirected to the login-screen.
This is (a part of) my code:
Any obvious mistakes?
// Anders