Visual Studio 2015 Preview Cordova: Cannot Request Content from Remote Host
I worked with Cordora for visual studio 2013 without any problems. Today I installed VS2015 preview and tried to port my project but got stuck with a simple web request.
So, I created a new project to test this behavior in a clean environment. I added jquery and a small script:
var url = "http://thetvdb.com/api/GetSeries.php?seriesname=The%20Walking%20Dead";
var request = $.getJSON(url, function(data) {
});
but i always get:
Failed to load resource: net::ERR_EMPTY_RESPONSE
and while debugging I see that the requested url starts with:
http://localhost:4400/ripple/xhr_proxy?tinyhippos_apikey=ABC&tinyhippos_rurl=
followed by the url I want.
config.xml contains:
<access origin="http://thetvdb.com" />
<access origin="*" />
I also tried adding this before the jquery call:
$.support.cors = true;
I'm not sure if the problem is my fault. But if so, tell me;)
Many thanks for your help!
+3
source to share
3 answers