Skip to content

Instantly share code, notes, and snippets.

@NghiaTranUIT
Last active August 7, 2018 09:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save NghiaTranUIT/7766dd1d6513f2dd8f3800370fee14f5 to your computer and use it in GitHub Desktop.
Save NghiaTranUIT/7766dd1d6513f2dd8f3800370fee14f5 to your computer and use it in GitHub Desktop.
Config network_security_config.xml

Add a file res/xml/network_security_config.xml to your app:

<network-security-config> 
  <debug-overrides> 
    <trust-anchors> 
      <!-- Trust user added CAs while debuggable only -->
      <certificates src="user" /> 
    </trust-anchors> 
  </debug-overrides> 
</network-security-config>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment