React Native XMLHttpRequest request fails if ssl (https) certificate is not valid

后端 未结 3 385
轻奢々
轻奢々 2021-01-21 00:29

When i am doing XMLHttpRequest to https server with not valid certificate React Native throws exception \"The operation couldn’t be completed. (NSURLErrorDomain error -1202.)\"<

3条回答
  •  被撕碎了的回忆
    2021-01-21 00:52

    As far as I can tell you can't do this in web XHR either, so React Native won't expose it. I've had a check through the source code which seems to confirm this.

提交回复
热议问题