- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎Dec 19, 2024 03:08 PM
I need help with making HTTP requests in Blocks:
- Regular fetch() fails with CORS errors as (more or less) expected in Blocks
- In my original extension script, I used remoteFetchAsync which worked fine for handling CORS issues
- 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:
- What is the current, supported way to make HTTP requests from Blocks?
- If there isn't one, why not? And when will this be fixed?
- Can you explain why remoteFetchAsync works in extensions but isn't available in Blocks?
Thanks for any help, and happy holidays!
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎Jan 07, 2025 10:42 PM
It sounds like you're facing a common issue with CORS errors when trying to make HTTP requests in Airtable Blocks, no ...](https://community.airtable.com/t5/development-apis/basic-http-requests-in-blocks-cors-error-with-fet...). Since **remoteFetchAsync** is not available in Blocks, you might consider using a workaround such as enabling CORS on your API server or using a browser extension to bypass CORS restrictions.
