douhuanglou1445 2011-03-08 18:29
浏览 98

PHP中的jQuery AJAX调用导致401错误

I've got a intranet site running under IIS7 using PHP 5+, jQuery 1.5.1, Windows Authentication for SSO capabilities.

Whenever I make an AJAX call to another PHP script, Firebug returns a 401 Unauthorized error, retries and succeeds (still reporting the 401). This sometimes results in pages taking 5+ seconds to load! I've found this topic all over the place for ASP but nothing for PHP. Please help if you can and let me know if you need any more settings info.

  • 写回答

1条回答 默认 最新

  • dongsu1951 2011-03-08 20:48
    关注

    After much more research, I've discovered that the best method for avoiding this costly vicious 401 cycle is to tap into your IIS server. Individually set authentication for each script to be called as an AJAX function to "Anonymous". This can be done by manually editing the applicationHost file or through the IIS Management Interface.

    评论

报告相同问题?

悬赏问题

  • ¥15 写uniapp时遇到的问题
  • ¥15 matlab有限元法求解梁带有若干弹簧质量系统的固有频率
  • ¥15 找一个网络防御专家,外包的
  • ¥100 能不能让两张不同的图片md5值一样,(有尝)
  • ¥15 informer代码训练自己的数据集,改参数怎么改
  • ¥15 请看一下,学校实验要求,我需要具体代码
  • ¥50 pc微信3.6.0.18不能登陆 有偿解决问题
  • ¥20 MATLAB绘制两隐函数曲面的交线
  • ¥15 求TYPCE母转母转接头24PIN线路板图
  • ¥100 国外网络搭建,有偿交流