Skip to content

Commit

Permalink
readme fixes
Browse files Browse the repository at this point in the history
# fixes #166
  • Loading branch information
Ron Radtke authored and Ron Radtke committed Jul 22, 2023
1 parent fa0e17e commit 3047bdb
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -924,12 +924,16 @@ ReactNativeBlobUtil.fetch('POST', 'http://example.com/upload', {'Transfer-Encodi
By default, react-native-blob-util does NOT allow connection to unknown certification provider since it's dangerous. To connect a server with self-signed certification, you need to add `trusty` to `config` explicitly. This function is available for version >= `0.5.3`
In addition since ``0.16.0`` you'll have to define your own trust manager for android.
````java
....
import com.ReactNativeBlobUtil.ReactNativeBlobUtilUtils;
...

public class MainApplication extends Application implements ReactApplication {
...
@Override
public void onCreate() {
...
ReactNativeBlobUtilUtils.sharedTrustManager = final X509TrustManager x509TrustManager = new X509TrustManager() {
ReactNativeBlobUtilUtils.sharedTrustManager = x509TrustManager = new X509TrustManager() {
@Override
public void checkClientTrusted(java.security.cert.X509Certificate[] chain, String authType) throws CertificateException {
}
Expand Down

0 comments on commit 3047bdb

Please sign in to comment.