R
R
rail01y2017-08-30 11:22:15
JavaScript
rail01y, 2017-08-30 11:22:15

Why react native swears at the certificate?

Good day.
I'm trying to file an application on react-native and I ran into a wonderful problem that when I try to send a request via fetch to an https domain, I get an error with a network error (while everything works fine in ios), and so on for any certificate. The same situation, if I send a request to a domain with http, but when I send a request via http to an ip address, does the answer come correctly? the question is how to fix it?

fetch('httpы://domain/api/users/support').then(function(res) {
            console.log('fetch: ', res);
        }).catch(function(error) {
            console.log('error: ', error);
        });

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question