You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by GitBox <gi...@apache.org> on 2021/12/20 15:13:17 UTC

[GitHub] [cordova-android] dpogue commented on issue #1112: Certificate validation failed with user's installed trusted CA certificates

dpogue commented on issue #1112:
URL: https://github.com/apache/cordova-android/issues/1112#issuecomment-998012361


   > That looks like what I want to do. Can I get the Cordova build to do this for me?
   
   Yes. Create a network_security_config.xml file somewhere, and add it to your config.xml as a resource-file to be copied into the Android platform, and then use edit-config to point the AndroidManifest to it:
   
   ```xml
   <!-- in your config.xml file -->
   <platform name="android">
     <resource-file src="path/to/network_security_config.xml" target="app/src/main/res/xml/network_security_config.xml" />
   
     <edit-config file="app/src/main/AndroidManifest.xml" mode="merge" target="/manifest/application">
       <application android:networkSecurityConfig="@xml/network_security_config" />
     </edit-config>
   </platform>
   ```


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

To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org