4

I was working with cordova 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 und 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 during debugging i can see that the requested url starts with:

http://localhost:4400/ripple/xhr_proxy?tinyhippos_apikey=ABC&tinyhippos_rurl= 

followed by the url I want.

the config.xml contains:

<access origin="http://thetvdb.com" />
<access origin="*" />

i also tried to add this before the jquery call:

$.support.cors = true;

I'm not really sure if the problem is my fault.. but if it is, please tell me ;)

Thanks very much for your help!

Kai Rohmer
  • 147
  • 1
  • 11

3 Answers3

2

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

Community
  • 1
  • 1
Avani
  • 566
  • 2
  • 8
0

Expand the Settings panel (ripple), Set option for the Cross Origin Proxy = Remote (or Disabled)

RouR
  • 6,136
  • 3
  • 34
  • 25
  • I'm not really sure why, but setting it to "Remote" worked. Setting it to "Disabled" did not.. – Kai Rohmer Nov 26 '14 at 13:37
  • It is because your browser (Chrome, FireFox, IE) do not allow xhr to different site. When it was set to Remote, it make xhr to localhost:4400 and ripple check internal that site is remote and setting is allowed this remote request. – RouR Nov 27 '14 at 12:43
0

If you trying get data from local server - Expand the Settings panel (ripple), Set option for the Cross Origin Proxy = Local and check what proxy port equal opened url (4400 in your case)

RouR
  • 6,136
  • 3
  • 34
  • 25