ASP.NET窗体身份验证和[否认证"子文件夹窗体、文件夹、身份验证、ASP

2023-09-03 04:57:01 作者:无聊也不聊

是否有可能禁用的网站是窗体身份验证的子文件夹中的所有验证?你怎么做到这一点?

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

推荐答案

是的,放在与此内容的子文件夹web.config文件:

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

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