test
Follow
Find
48 views | +0 today
 
Rescooped by Taras Semenenko from Google Apps Script
onto test
Scoop.it!

Proxy jsonp - How to use Google Apps Script to avoid same origin json problems

Proxy jsonp - How to use Google Apps Script to avoid same origin json problems | test | Scoop.it

If you are reading this, I guess you are familiar with this error message "XMLHttpRequest cannot load somedata.json. Origin null is not allowed by Access-Control-Allow-Origin."

This is of course the same origin policy that prevents you being able to access jSon data that is stored on a different domain than your javaScript Code. This is really annoying if you are trying to use publicly hosted data, but there are ways round it.

 

Here's how to use Google Apps Script as a Proxy for all your jsonp needs.


Via brucemcpherson, Martin Hawksey
Taras Semenenko's insight:

test

more...
No comment yet.
Your new post is loading...
Your new post is loading...
Rescooped by Taras Semenenko from Google Apps Script
Scoop.it!

Proxy jsonp - How to use Google Apps Script to avoid same origin json problems

Proxy jsonp - How to use Google Apps Script to avoid same origin json problems | test | Scoop.it

If you are reading this, I guess you are familiar with this error message "XMLHttpRequest cannot load somedata.json. Origin null is not allowed by Access-Control-Allow-Origin."

This is of course the same origin policy that prevents you being able to access jSon data that is stored on a different domain than your javaScript Code. This is really annoying if you are trying to use publicly hosted data, but there are ways round it.

 

Here's how to use Google Apps Script as a Proxy for all your jsonp needs.


Via brucemcpherson, Martin Hawksey
Taras Semenenko's insight:

test

more...
No comment yet.