简体   繁体   中英

https doesnt work on react-native android

When i try to get a request to my api via https protocol it doesnt work (NETWORK_ERROR returns), but if i do it via http it works fine. Im using apisauce. What i've tried:

I think the problem with certificates(?), but why i can do it via postman? RN 0.64.0

In my case it was wrong FQDM: was:

api_demo_13312021.mydomian.com

changed to:

api.mydomain.com

I checked my domain for correct ssl sertificate on many resources, but they apparently don't check FQDM. Today i tried it on https://www.digicert.com/help/ and notified for

not a fully qualified public domain name or public IP address.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM