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


Seems to be related to this . Basically, the cross domain proxy should be disabled.



+2


source


Expand the "Settings" panel (ripples), set the parameter for the proxy server Cross Origin = Remote (or Disabled)



0


source


If you are trying to get data from a local server - expand the Settings panel (ripples), set the parameter for Cross Origin Proxy = Local and check which proxy server port is equal to the public url (4400 in your case)

0


source







All Articles