【发布时间】:2012-07-27 07:10:45
【问题描述】:
我遇到了这个 WebKit 错误中提到的问题: https://bugs.webkit.org/show_bug.cgi?id=57600
问题在于移动 Safari,它适用于 Google Chrome 和 Firefox。我重定向跨域 ajax 请求的相同代码适用于 Google Chrome 和 Firefox,但不适用于移动 Safari。
据我了解,该错误是在 WebKit 版本 525 中提交的: https://bugs.webkit.org/show_bug.cgi?id=57600
并在 WebKit 版本 528 中解决(我认为这是因为在同一问题上打开了不同的回归错误): https://lists.webkit.org/pipermail/webkit-unassigned/2012-April/429252.html
但在 iPhone 设备上使用我的移动 Safari 时,重定向被拒绝,即使我有带有 WebKit 版本 534(更高版本)的移动 Safari。
有没有人遇到过这种行为,有解决办法吗?
注意:我确实定义了跨域 (CORS) 标头(因为它在 Google Chrome 和 Firefox 中工作)。
编辑:Windows 版 Safari 也存在同样的问题。
【问题讨论】:
标签: ajax redirect safari cross-domain mobile-safari