使用 Windows 身份验证、AJAX、ASMX 和外部 ISA 的 HTTP 401 过多
环境:
- ASP.NET WebForms
- .NET 3.5
- jQuery for AJAX
- ASMX Web 服务
- Windows 身份验证
- SSL
当我们运行生产 Web 应用程序时,我们的 AJAX 调用通常会出现 2-3 个 HTTP 401,然后才会收到我们的请求。 HTTP 200。
这正常吗?
我们可能做错了什么吗?
注意: 调用不会失败,401 会尝试直到成功。
Enviornment:
- ASP.NET WebForms
- .NET 3.5
- jQuery for AJAX
- ASMX web services
- Windows Authentication
- SSL
When we run our production web application, our AJAX calls often have 2-3 HTTP 401s before we get our HTTP 200.
Is this normal?
Is there something we may be doing wrong?
NOTE: The calls do not fail, the 401s try until they succeed.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这是 NTLM 样式集成 Windows 身份验证的正常流量。顺序大致为:
如果您查看服务器的原始响应,您应该会看到协商标头以及相应的编码/来自客户端的加密请求。
That's normal traffic for NTLM-style Integrated Windows authentication. The sequence is roughly:
If you look in the raw responses from the server, you should see the Negotiate headers, and the corresponding encoded / encrypted requests from the client.