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 怎么获取下面的: glove_word2id.json和 glove_numpy.npy 这两个文件
  • ¥15 js调用html页面需要隐藏某个按钮
  • ¥15 ads仿真结果在圆图上是怎么读数的
  • ¥20 Cotex M3的调试和程序执行方式是什么样的?
  • ¥20 java项目连接sqlserver时报ssl相关错误
  • ¥15 一道python难题3
  • ¥15 牛顿斯科特系数表表示
  • ¥15 arduino 步进电机
  • ¥20 程序进入HardFault_Handler
  • ¥15 oracle集群安装出bug