I'm running my Cordova app through the browser.
And when it needs to send an ajax request, it does so to a partially escaped URL.
http://192.168.8.100:3000/proxy/https%3A%2F%2Fqz.com%2Fpostqr
I have tried encoding the URI, tried serializing, yet the same behavior can be seen. The browser is Chrome running on Windows.
Code in question:
var url = "https://qz.com/postqr";
var data = {payload:results,user:user};
$.ajax({
type: "POST",
url: url,
data: data
}).fail(function(data){
console.log('ERROR SUBMITTING RES');
console.log(data);
}).done(function(data) {
console.log('SUBMITTING RES');
console.log(data);
});
```
Edit: the solutions provided on SO are not fixing the issue for me.