4thSpace
4thSpace

Reputation: 44310

How to do external call in jsfiddle?

This was working earlier today. I'm not sure why it is broken now. I'm doing the following:

$.getJSON( "http://ip.jsontest.com/", function( data ){  
    console.log(data);
 });

http://jsfiddle.net/rxykb0t0/

And keep getting this error:

XMLHttpRequest cannot load http://ip.jsontest.com/. Origin http://fiddle.jshell.net is not allowed by Access-Control-Allow-Origin.

If you look at this example http://jsfiddle.net/ZfvKm/2/, it is also doing an external call without issue. What am I doing wrong?

Upvotes: 0

Views: 218

Answers (1)

Maximillian Laumeister
Maximillian Laumeister

Reputation: 20359

Visit http://ip.jsontest.com/ yourself, and see that the app is over quota. It looks like it's running on Google App Engine, so whoever runs ip.jsontest.com needs to increase their daily budget for that particular app.

Upvotes: 1

Related Questions