We can access the Application page in SharePoint anonymous
site.
·
By default, the page is inherited from
LayoutsPageBase. Change the inheritance from “LayoutsPageBase” to “UnsecuredLayoutsPageBase”.
·
Next, we need to override a property of the
UnsecuredLayoutsPageBase, to allow the anonymous access. Be sure to change the
‘getter’ to return true
protected override bool AllowAnonymousAccess
{ get { return true; } }
Example :
Reference:
No comments:
Post a Comment