responsive-tables icon indicating copy to clipboard operation
responsive-tables copied to clipboard

Infinite spinner when using a document not published to the web

Open benlk opened this issue 11 years ago • 0 comments

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 <URL>. 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.

benlk avatar Jul 14 '14 16:07 benlk