XMLHtt prequest到Amazon S3在某些计算机只有失败 [英] XMLHttpRequest to Amazon S3 fails only on some computers

查看:127
本文介绍了XMLHtt prequest到Amazon S3在某些计算机只有失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们的Web应用程序是一个上传的直接推到Amazon S3。它从来没有测试,但是,现在,一个客户端,他们正在经历每台计算机50/50成功率的软件。

Our web app is an uploader the pushes directly to Amazon S3. It has never failed testing, however, now that a client has the software they are experiencing a 50/50 success rate per computer.

看来,错误的就不好了计算机上的任何浏览器中出现: XMLHtt prequest无法加载www.DOMAIN.json。原点......不被访问控制 - 允许 - 产地允许的。

Seems that the error appears on any browser on the bad computers: XMLHttpRequest cannot load "www.DOMAIN.json". Origin ... is not allowed by Access-Control-Allow-Origin.

  • 在主机文件不具有的独特设置
  • 计算机连接到不影响胜负的网络
  • 在两个类似的计算机(操作系统,浏览器,网络)和一个工程,其他没有。

这是jQuery的上传,修改。我们使用CORS方法。 https://duckduckgo.com/Cross-origin_resource_sharing?ia=about

This is the jQuery uploader, modified. We use CORS method. https://duckduckgo.com/Cross-origin_resource_sharing?ia=about

任何有经验的跨域战士在那里?

Any experienced cross-domain warriors out there?

推荐答案

好消息!我们整理了这一点,通过添加https://开头的应用程序的URL。这不100%解决我们当前的问题,但它使我们能够设计一个更优雅的替代。

Good news! We sorted this out by adding https:// to the app URL. This doesn't 100% solve our current problem, but it allows us to program a more graceful fallback.

这篇关于XMLHtt prequest到Amazon S3在某些计算机只有失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆