[英]Meteor run android-device in development mode
When I run the following command meteor run android-device
I app loads on the device, but I cannot login or perform any action, and I get the following error message : 当我运行以下
meteor run android-device
命令meteor run android-device
我的应用程序已加载到设备上,但无法登录或执行任何操作,并且收到以下错误消息:
I20160125-16:26:04.688(2) (android:http://meteor.local/:0) XMLHttpRequest cannot load http://192.168.20.41:3000/sockjs/info?cb=pp4d6iodxu. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://meteor.local' is therefore not allowed access. The response had HTTP status code 403.
My phone is in developer mode, and I'm debugging (or attempting to) via USB. 我的手机处于开发人员模式,并且正在通过USB调试(或尝试进行调试)。
As I already mentioned, the app is loading, but I'm dead from there. 正如我已经提到的,该应用程序正在加载,但是我已经死了。
Try to add App.accessRule("*");
尝试添加
App.accessRule("*");
to /mobile-config.js 到/mobile-config.js
After trying a number of things, including setting up another demo app, multiple restarts, setting up browser policies and tons of access Rules etc, it finally began to work. 在尝试了许多操作(包括设置另一个演示应用程序,多次重新启动,设置浏览器策略和大量访问规则等)之后,它终于开始工作了。 The things I tried:
我尝试过的事情:
So in order to figure out what specifically caused the issue I began to work backwards removing things, until I removed ALL OF IT. 因此,为了弄清楚是什么原因造成的,我开始着手向后删除内容,直到删除所有内容。 and then it still worked.
然后它仍然有效。
I have tried for two weeks to replicate the issue now, and everything is working smoothly. 我已经尝试了两个星期,现在重现此问题,并且一切正常。 Putting this down to a random bug, in my system, there are definitely more than a few people that have hit it.
归结为一个随机错误,在我的系统中,肯定有很多人遇到了它。
The only thing I think I could have missed is a package update, that patched some package in the dependency tree that caused the whole thing to bomb on mobile. 我认为我唯一可能会错过的是软件包更新,该软件包对依赖关系树中的某些软件包进行了修补,从而导致整个事情在移动设备上轰炸。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.