Happy New Year!
We’re excited to open up a beta for a new
remoteFetchAsync function in the Scripting App.
One of the most common issues we see users run into when writing scripts is in trying to use the
fetch API to communicate with an external service. Because Scripting App scripts run directly in the user’s browser,
fetch requests will be blocked by the browser if the target server doesn’t support Cross-Origin Resource Sharing (CORS).
remoteFetchAsync method transmits the request from Airtable’s own servers rather from the user’s browser, thereby getting around CORS issues.
remoteFetchAsync works very similarly to
fetch and expects the same inputs, except for a handful of “gotchas” stemming from the fact that this is run from a backend.
We’d love to get your feedback on this new API.