简体   繁体   English

XMLHttpRequest无法加载Cloud 9 IO

[英]XMLHttpRequest cannot load cloud 9 io

I am getting an occasional 'XMLHttpRequest cannot load' error while using the cloud 9 cloud hosted development environment. 使用Cloud 9 Cloud托管的开发环境时,偶尔会出现“ XMLHttpRequest无法加载”错误。

The full error is 'XMLHttpRequest cannot load https://c9.io/_user_content/authorize?redirect=http%3A%2F%2FprojName-username.c9.io%2Fusers%2Fanswers . 完整的错误是'XMLHttpRequest无法加载https://c9.io/_user_content/authorize?redirect=http%3A%2F%2FprojName-username.c9.io%2Fusers%2Fanswers No 'Access-Control-Allow-Origin' header is present on the requested resource. 所请求的资源上没有“ Access-Control-Allow-Origin”标头。 Origin ' http://projName-username.c9.io ' is therefore not allowed access.' 因此,不允许访问源' http://projName-username.c9.io '。

The error is inconsistent. 错误不一致。 It has shown up (and not shown up) on various pages and often my page will work if I just reload it and try the exact same thing again. 它已显示在(而不是未显示在)各个页面上,并且只要重新加载并再次尝试完全相同的操作,我的页面通常就会工作。 Is anyone else running into this error on cloud 9 or perhaps my internet connection is just unreliable? 是否有人在Cloud 9上遇到此错误,或者我的互联网连接不可靠? I am using the MEAN stack on a micro instance of cloud 9 with 1 GB ram and 10GB storage. 我在具有1 GB内存和10GB存储的Cloud 9微型实例上使用MEAN堆栈。

This is a temporary bug that arose as a result of changing the app preview URL from c9.io to c9users.io. 这是由于将应用程序预览URL从c9.io更改为c9users.io而引起的临时错误。 The change was made in order to protect users and increase security. 进行此更改是为了保护用户并提高安全性。 A fix will be out for this soon. 即将解决此问题。

In the meantime you can set your application to public (your code will still be private and undiscoverable) by clicking "Share" in the top right and then checking the box next to your application URL. 同时,您可以通过单击右上角的“共享”,然后选中应用程序URL旁边的框,将应用程序设置为公开(您的代码仍然是私有且不可发现的)。


Update : This bug has now been fixed. 更新 :此错误现已修复。 Any further issues similar to this should be submitted at https://community.c9.io so they can be addressed properly. 与此类似的任何其他问题都应在https://community.c9.io上提交,以便可以正确解决。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM