如何通过网络向 IOS9 提供 Excel 电子表格?
How do I serve Excel spreadsheets to IOS9 over the web?
我有一个托管 Excel 电子表格的经过身份验证的网站。 Apple 用户已经能够在 Safari 中令人满意地查看这些电子表格。但在 IOS9 中,.xlsx 电子表格不再正确显示,仅显示 header 和 none 的内容。相关的 HTTP header 是
Content-Disposition:attachment; filename="sheet.xlsx"
Content-Type:application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
我不禁注意到我在 iPad 上安装了 Excel,但我在有问题的 Safari 中查看文档。有没有办法将我的文档从 Safari 获取到 Excel,或者 header 我可以设置为允许这样做?
(使用 iOS 9.1 和 Excel,Safari 最终 显示一个 "Open in Excel" 选项。)
我也看到了这种行为。
在 iOS 9 上的 Safari 中通过 SSL 打开 xlsx 文件仅显示 headers。
它在 Chrome 中正常运行,Dolphin 在 iOS 9 上正常运行,Safari 在 iOS 8 台设备上正常运行。
编辑: 使用网络检查器我能够看到 javascript 和 css 文件被阻止。
这是警告。
[Warning] [blocked] The page at [URL] was not allowed to run insecure content
from x-apple-ql-id://C18FD844-A305-415A-8096-90DFD8D43CA8/x-apple-ql-magic/Tabs.js.
[Warning] [blocked] The page at [URL] was not allowed to run insecure content
from x-apple-ql-id://018921C7-D074-4763-8838-E44E535A65F4/x-apple-ql-magic/Tabs.css.
还有一个错误
[Error] ReferenceError: Can't find variable: ReloadFirstSheetIfNeeded
我有一个托管 Excel 电子表格的经过身份验证的网站。 Apple 用户已经能够在 Safari 中令人满意地查看这些电子表格。但在 IOS9 中,.xlsx 电子表格不再正确显示,仅显示 header 和 none 的内容。相关的 HTTP header 是
Content-Disposition:attachment; filename="sheet.xlsx"
Content-Type:application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
我不禁注意到我在 iPad 上安装了 Excel,但我在有问题的 Safari 中查看文档。有没有办法将我的文档从 Safari 获取到 Excel,或者 header 我可以设置为允许这样做?
(使用 iOS 9.1 和 Excel,Safari 最终 显示一个 "Open in Excel" 选项。)
我也看到了这种行为。
在 iOS 9 上的 Safari 中通过 SSL 打开 xlsx 文件仅显示 headers。
它在 Chrome 中正常运行,Dolphin 在 iOS 9 上正常运行,Safari 在 iOS 8 台设备上正常运行。
编辑: 使用网络检查器我能够看到 javascript 和 css 文件被阻止。 这是警告。
[Warning] [blocked] The page at [URL] was not allowed to run insecure content
from x-apple-ql-id://C18FD844-A305-415A-8096-90DFD8D43CA8/x-apple-ql-magic/Tabs.js.
[Warning] [blocked] The page at [URL] was not allowed to run insecure content
from x-apple-ql-id://018921C7-D074-4763-8838-E44E535A65F4/x-apple-ql-magic/Tabs.css.
还有一个错误
[Error] ReferenceError: Can't find variable: ReloadFirstSheetIfNeeded