Thursday, October 22, 2015

Reading JSON file in GitHub from JSFiddle

I am experimenting with HighChart, digging out the code.I create sample JSON  resided in GitHub.Then in JSFiddle, I use Raw url to read JSON file,but it does not work and prompt me this error.

Uncaught SecurityError: Blocked a frame with origin "xxxx" from accessing a frame with origin "http://jsfiddle.net". Protocols, domains, and ports must match.

Then I googling and found out that we can paste Github URL at http://rawgit.com/ ,so it will generate url that accessible.

No comments:

Post a Comment