开发者

ASP.NET Forms Authentication and a "No Authentication" subfolder

开发者 https://www.devze.com 2022-12-22 20:11 出处:网络
Is it possible to disable all authenticati开发者_运维技巧on in a subfolder of a web site that is Forms Authenticated? How do you accomplish this?Yes, place a web.config file on the subfolder with this

Is it possible to disable all authenticati开发者_运维技巧on in a subfolder of a web site that is Forms Authenticated? How do you accomplish this?


Yes, place a web.config file on the subfolder with this content:

<configuration>
    <system.web>
      <authorization>
        <allow users="*"/>
      </authorization>
    </system.web>
</configuration>


yes you can, you can use location tag in the web.config to configure folder level security.

0

精彩评论

暂无评论...
验证码 换一张
取 消