C# 从本地主机上的Web api中删除身份验证
我在visual studio上有一个使用ADO.NET框架的OData web api。我在chrome上获得了一个身份验证窗口,我从控制器和web.config文件中删除了授权部分,但询问用户名和密码的窗口即将出现 如何删除它? 我的web.config文件已被删除C# 从本地主机上的Web api中删除身份验证,c#,asp.net,authentication,web-config,C#,Asp.net,Authentication,Web Config,我在visual studio上有一个使用ADO.NET框架的OData web api。我在chrome上获得了一个身份验证窗口,我从控制器和web.config文件中删除了授权部分,但询问用户名和密码的窗口即将出现 如何删除它? 我的web.config文件已被删除 <system.web> <authentication mode="Windows"> <forms requireSSL="true" /> </aut
<system.web>
<authentication mode="Windows">
<forms requireSSL="true" />
</authentication>
<authorization>
<allow roles="myService" />
<deny users="*" />
</authorization>
我删除了它,但身份验证窗口仍在打开。非常感谢您的帮助。将“无”用作的模式。不指定任何内容时,默认值为Windows。可以找到有关ASP.NET身份验证的详细信息
<authentication mode="None">
<!--<forms requireSSL="true" />-->
</authentication>