GPK*_*GPK 6 c# iis-7 http-status-code-401 asp.net-web-api
我收到401未经授权的错误.我的网络服务是用mvc编写的.在IIS中配置为使用Windows身份验证.下面是小提琴手的截屏
当我从浏览器点击URL时,它会弹出窗口输入用户名和密码.如何避免弹出窗口?
我从另一个窗口服务调用这个web api.
GPK*_*GPK -2
我在网络配置中添加了以下行来解决该问题并且它有效。
<security>
<authorization>
<add accessType="Allow" users="*" />
</authorization>
</security>
Run Code Online (Sandbox Code Playgroud)