首页 文章

Safari 7网络请求时间轴不显示重定向?

提问于
浏览
31

我正在尝试调试网站之间的重定向问题我很确定是由于Safari默认处理第三方cookie,但我试图通过查看请求中传递的cookie来确认问题所在Web Inspector中使用网络请求时间轴的响应 . 这是所有HTTPS流量,因此外部嗅探器已经用完了 - 我需要使用Safari的调试工具 .

我写的问题只包含javascript重定向到供应商网站;它应该验证URL参数并传回一个页面执行另一个重定向 . 我在浏览器中看到的是一个不同的页面(登录页面,供应商网站) . 网络时间线显示我的页面正在加载,然后是正在加载的供应商登录页面 . 检查员将我的页面显示为登录页面的引用者 . 有's no reference to this login page in my code - this has to be the result of a redirect from the correct page (the one my javascript code is supposed to redirect to). But the timeline doesn' t显示任何重定向 .

我知道它应该显示重定向;我在safari博客上发现了一个帖子,当该功能被添加到Safari 6.我找不到设置或任何东西来控制它 .

这是一个已知的错误? Safari 7中是否删除了该功能?或者这是操作员错误?

Update :我在Firefox中测试过,使用"From Visited"选项进行"Accept third-party Cookies"设置,以模仿Safari默认执行的操作 . 在Firefox 's timeline, I can clearly see two 302 redirects before landing on the vendor login page. Safari does not show them. So it definitely appears that safari is supressing them. Is this a bug or a setting I'中错过了吗?

1 回答

  • 2

    在Safari中,HTTP重定向显示在资源选项卡中,而不是时间轴中 . 每个重定向都显示为单独的资源条目,提供其所有元信息,如时序和标头 . 看一下截图
    enter image description here

    选择重定向链条可以为您提供其状态代码和响应标头中的重定向位置 .
    enter image description here

    来源和更多信息:https://www.webkit.org/blog/1091/more-web-inspector-updates/#resources_inspection

相关问题