Help

Basic HTTP Requests in Blocks, CORS error with fetch(), no remoteFetchAsync?

54 0
cancel
Showing results for 
Search instead for 
Did you mean: 
hbfreed
1 - Visitor
1 - Visitor

I need help with making HTTP requests in Blocks:

  1. Regular fetch() fails with CORS errors as (more or less) expected in Blocks
  2. In my original extension script, I used remoteFetchAsync which worked fine for handling CORS issues
  3. However, when I try to use remoteFetchAsync in Blocks, it seems to not exist at all

I've thoroughly checked the @airtable/blocks SDK, since the docs don't seem to say anything about this for blocks, (it has the "Scripting Extension Only" tag).

Questions for the Airtable team:

  1. What is the current, supported way to make HTTP requests from Blocks?
  2. If there isn't one, why not? And when will this be fixed?
  3. Can you explain why remoteFetchAsync works in extensions but isn't available in Blocks?

Thanks for any help, and happy holidays!

0 Replies 0