Quantcast
Channel: Ionic Forum - Latest posts
Viewing all articles
Browse latest Browse all 230052

DNS Blacklist - ionic app with httpClient.post

$
0
0

Good morning,

we faced some issue where we had no connection through our network to our server. The problem was, that our public ip got blacklisted and the clients (ionic 3 and ionic 4 applications) were unable to connect to the server.

Is there a way to prevent this? Do we need to implement some specific header or something?

getData<T>(postData, path): Promise<T> {
        const headers = new HttpHeaders({
            'Content-Type': 'application/json'
        });
        return new Promise((resolve, reject) => {
            this.http.post(API + path, JSON.stringify(postData), {headers: headers})
                .subscribe(res => {
                    resolve(res as T);
                }, (err) => {
                    reject(err);
                });
        });
    }

Viewing all articles
Browse latest Browse all 230052

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>