Accessing a published Google Sheets from a webpage

88 views Asked by At

I have a page with this code:

xmlhttp = new XMLHttpRequest(); }
xmlhttp.open("GET","https://spreadsheets.google.com/feeds/cells/14EiO1Fq6Z9eiN03eejNMlPAISTmwwCLhtcZxoSqLszo/ovqq6ni/private/full",false);
xmlhttp.send();

The code is failing due to: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://www.acme.com' is therefore not allowed access.

How do I solve this? I tried using the callback parameter but that just results in the same error.

Is the problem the way I'm retrieving the URL, or something on the Google Sheets / Spreadsheets end?

1

There are 1 answers