Lurker News
Back to discussion

Comment by chris_st

chris_st1 reply#
I have a personal website backed by a Google sheets page; however, it started not handing out proper CORS headers on the request, so it no longer works for me.

Have you run across this? How did you solve it? Thanks!

tjchear1 reply#
I have not run across this issue before. How are you accessing the sheets though? Cloud Sheets API, or the json-in-script endpoint?
chris_st#
From the File menu, choose "Publish to the web", and then choose ".csv" format. This gives you a URL that (up until recently) you could pull with either "curl" (etc.) or from a web page (e.g., an SPA). Now the SPA thing fails with a CORS error. Other people on the web have seen it too.

Thanks!