ASP.NET Forms Authentication and a “No Authentication” subfolder

后端 未结 2 641
暗喜
暗喜 2021-01-18 06:04

Is it possible to disable all authentication in a subfolder of a web site that is Forms Authenticated? How do you accomplish this?

相关标签:
2条回答
  • 2021-01-18 06:29

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

    0 讨论(0)
  • 2021-01-18 06:36

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

    <configuration>
        <system.web>
          <authorization>
            <allow users="*"/>
          </authorization>
        </system.web>
    </configuration>
    
    0 讨论(0)
提交回复
热议问题