orhan-swe commented on issue #43: Network Error cordova [email protected][bug]
URL: 
https://github.com/apache/cordova-plugin-whitelist/issues/43#issuecomment-581469428
 
 
   @EdisonWerle 
   
   Thanks!
   
   One thing:
   > I also changed in resources / android / xml / 
**network-security-config.xml** authorizing the domains.
   
   is wrong, it should be: **network_security_config.xml** as that is how you 
reference the file from config.xml
   
   Also for anyone else with this problem, network_security_config.xml is only 
needed if you want to enforce https on all traffic except for what you specify 
in: network_security_config.xml If you do not care about that as your prod 
server always uses https then network_security_config.xml is not needed and you 
can just update config.xml with:
   
   ```
   <edit-config file="app/src/main/AndroidManifest.xml" mode="merge"  
target="/manifest/application" 
xmlns:android="http://schemas.android.com/apk/res/android";>
               <application android:usesCleartextTraffic="true" />
           </edit-config>
   ```

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to