我在一个从多个 CDN 提取图像的站点上工作,我想记录哪个图像来自哪个 CDN。这些 CDN 发送一个额外的标头参数,其中包含命名发送图像的服务器的图像。
问题: - 由于禁用了 CORS,Ajax 无法工作 - 无法使用代理或将代理文件放在 CDN 上,因为它们只提供图像
任何提示如何使其仅与 JS 一起工作?或者也许与Flash?
有没有办法使用 Javascript(如 Firebug 或 Chrome 开发工具)“观察”网络?
我在一个从多个 CDN 提取图像的站点上工作,我想记录哪个图像来自哪个 CDN。这些 CDN 发送一个额外的标头参数,其中包含命名发送图像的服务器的图像。
问题: - 由于禁用了 CORS,Ajax 无法工作 - 无法使用代理或将代理文件放在 CDN 上,因为它们只提供图像
任何提示如何使其仅与 JS 一起工作?或者也许与Flash?
有没有办法使用 Javascript(如 Firebug 或 Chrome 开发工具)“观察”网络?
I don't know the exact solution for your problem but if I were you I would look at websockets. There are a lot of questions about it there: https://stackoverflow.com/search?q=websocket+image+javascript And I think you should look at this too: http://binaryjs.com/