IONIC - WKWebview CORS issues


#1

In order to solve statusbar issues in IOS 11, IONIC team has become the WKWebview as default in the recent release. Since then, I am having CORS issues… I have tried many ways to sort this out, but none of them has had any effect. Although the Native HTTP plugin seems to solve CORS issues, it does not work with the XML content type. I also attempted to use the following plugin: https://github.com/sneas/ionic-native-http-connection-backend

But I am still getting the following error:

Code:

public sendRequest(sufix, json) {           

    console.log(json);
    let headers = new Headers({ 
        'Content-Type': 'application/xml', 
        'livefacilities-apptoken': APPTOKEN
    });
    let options = new RequestOptions({ 'headers': headers });
    let xml = this.jsonToXml(json);
    console.log(xml);
    return this.http.post(URL+sufix, xml, options)
        .timeout(TIMEOUT_REQUEST*1000)
        .do(this.logResponse)
        .map(this.extractData)
        .catch(this.handleError);   

}

Can anyone help me, please?