INN / responsive-tables

Responsive Table embed generator; 🚨no longer supported 🚨
hxxps://inn.github.io/responsive-tables/
MIT License
24 stars 10 forks source link

Infinite spinner when using a document not published to the web #14

Open benlk opened 10 years ago

benlk commented 10 years ago

If a user enters a Google Docs spreadsheet that has not been "published" with the "File > Publish to the web...." tool in Google Docs, then the request for the spreadsheet JSON will fail to load. The spinner will continue to spin. Browser console gives the following error:

XMLHttpRequest cannot load . No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://inn.github.io' is therefore not allowed access.

The browser will refuse to load the document as a security measure.

The fix is for the user to publish the spreadsheet with "File > Publish to the web....", but we could be a bit more verbose about the error. "Publishing" is different than the "Public" entry under the "Share" button.