Android上的Ionic App不发送http请求 [英] Ionic App on Android not sending http requests

查看:777
本文介绍了Android上的Ionic App不发送http请求的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要你的帮助。我在应用程序商店中有一个应用程序,它基于离子和构建与phonegap构建。自上周以来,我的一些用户无法再登录该应用。我已经尝试在服务器端调试,但请求甚至没有到达服务器。奇怪的是,问题开始出现在上周之前,一切正常。它似乎只出现在某些手机上,但我看不到智能手机类型或Android版本的模式。我已经阅读了大部分相关帖子并检查了以下可能的原因:

I need your help. I have an app in the app store which is based on ionic and build with phonegap build. Since last week some of my users cannot login into to the app anymore. I already tried to debug on the server side but the request does not even reach the server. The weird thing is that the problem started to appear last week before that everything worked fine. It seems to occur only on some phones, but I cannot see a pattern of smartphone type or android version. I already read most of the related posts and checked the following possible reasons:


  1. 缺少CSP:我在我的CSP条目中有以下内容index.html

  1. Missing CSP: I have following CSP entry in my index.html

<meta http-equiv="Content-Security-Policy" content="default-src *;img-src * data:; style-src 'self' 'unsafe-inline'; script-src 'self' 'unsafe-inline' 'unsafe-eval'">

以下是config.xml中白名单插件的条目

And following entry for the whitelist plugin in the config.xml

<access origin="*"/>
<allow-navigation href="http://*/*" />


  • 我还检查了Access-Control-Allow-Origin和Access-Control-我的node.js服务器上的Allow-Header

  • I also checked the "Access-Control-Allow-Origin" and Access-Control-Allow-Headers on my node.js server

    res.header("Access-Control-Allow-Origin", "*");
    res.header("Access-Control-Allow-Headers", "Origin, X-Requested-With, Content-Type, Accept, Authorization");
    


  • 你们有没有遇到过类似的问题?或者确实知道寻找问题的起点?我真的很感谢你的帮助,因为我已经尝试了我想到的一切。

    Did anyone of you encounter a similar problem? Or does know a starting point where to look for the problem? I would really appreciate your help, because I already tried everything I have in mind.

    祝你好运,

    Peter

    推荐答案

    嘿嘿几天阅读博客和代码检查后,我发现了以下文章: http://www.cio。 com / article / 3146715 / security / chrome-bug-triggered-errors-on-websites-using-symantec-ssl-certificates.html

    Hey after several days of reading blogs and code checking i found the following article: http://www.cio.com/article/3146715/security/chrome-bug-triggered-errors-on-websites-using-symantec-ssl-certificates.html

    这是我们的证书提供程序和Android Web视图的问题。通过应用程序商店更新Web视图和chrome后,一切都恢复正常。不同的版本也解释了为什么只有一些用户遇到了这个问题。

    It was a problem with our certificate provider and the android web view. After updating the web view and chrome via the app store, everything works again. The different version also explain why only some users experienced the problem.

    最好的问候

    彼得

    这篇关于Android上的Ionic App不发送http请求的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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