Ionic App on Android not sending http requests

2019-08-02 02:20发布

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. 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'">
    

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

    <access origin="*"/>
    <allow-navigation href="http://*/*" />
    
  2. 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.

Best regards,

Peter

1条回答
Fickle 薄情
2楼-- · 2019-08-02 02:43

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

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.

best regards

Peter

查看更多
登录 后发表回答