3 ms·
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.
by chris_st 6y ago
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!
- tjchear 6y agoI 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 6y agoFrom 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!