asp.net - anonymous access to aspx page fails -
I have a web site that uses form authentication For the most part, do my web site do anything Authentication requires my privacy statement page to be an exception and should be accessible to anonymous users. The page is in the folder, and I have set the location path information in web.config as follows:
& Lt; / Authorization & gt; & Lt; /system.web> & Lt; / Location & gt; & Lt; Permission to placeoverride = "true" & gt; & Lt; System.web & gt; & Lt; Authentication mode = "form" & gt; & Lt; Forms name = "FDAuth" cookieless = "UseCookies" security = "all" loginUrl = "login.aspx" requireSSL = "false" sliding aspiration = "fake" & gt; & Lt; / Forms & gt; & Lt; / Authentication & gt; & Lt; Authority & gt; & Lt; Deny users = "?" / & Gt; & Lt; / Authorization & gt; & Lt; /system.web> & Lt; / Location & gt;
This configuration allows anonymous access to other file types, but still prompts to log in to ASPX pages.
In other words, anonymous access to this page is allowed
www.mywebsite.com/about/privacy.asp
But if I go to this page If I try to gain access then I go to login.aspx page
www .mywebsite.com / about / privacy.aspx
me www.mywebsite.com/about/ What to do to allow anonymous access to privacy.aspx?
simply & lt; Space permission overreached = "true" & gt; Remove the
element and & lt; Authorization / & gt; Configure To define the exception of global policy,
& lt; System.web / & gt;
& lt; Location & gt;
is used inside the tag, which is usually & lt; Authority / & gt; Within
& lt; System.web / & gt;
Comments
Post a Comment