Hello I apologize for stupidity, I have never worked with REST API.
Hello i try to connect self-hosted Grist with report software GET data from REST API
I receive a response from the server and at the beginning of the answer we have comments:
Data processing error: Unable to load data from "https://templates.getgrist.com/api/docs/afterschool-program/tables/Classes/records": Failed to fetch..
I’d guess that tool is trying to load from Grist directly from javascript in the browser; we don’t permit that because it could allow a third-party website to access your Grist data without you realizing it. It might be reasonable to allow it for public documents though, but I presume the actual document you have is not public.
It could be a nice feature for self-hosted Grist to add a list of sites that Grist should trust. Grist could then set a header on api results that would direct browsers to allow cross-site access to the results.
Why then do we need a REST API in Grist and Authentication?
What if I want to use Grist as a Headless CMS for a website or mobile app? Or, as in my case, the data source for reports?