ziolko / spreadapi

Free REST API for Google Spreadsheet
https://spreadapi.roombelt.com
Other
90 stars 13 forks source link

CORS #15

Closed jaroslavas closed 4 months ago

jaroslavas commented 4 months ago

How do you guys solve problem with CORS? I'm trying to run code from documentation, bet then when I make request from my frontend app, browser blocks the request and throws CORS error.

ziolko commented 4 months ago

Hi @jaroslavas,

Could you take a look at this example: https://jsfiddle.net/mkzL9ver/27/? It doesn't have any issue with CORS so perhaps you can just take the same approach.

ziolko commented 4 months ago

Hi @jaroslavas. I will close this ticket due to lack of activity from your side.

Cheers, Mateusz

jaroslavas commented 4 months ago

OK, I just switched to reading json on my backend and caching it, which is overall a better solution, keeping in mind that google has quite low rate limits.