CORS blocking only PATCH requests

Topic Labels: Custom Extensions
1253 1
Showing results for 
Search instead for 
Did you mean: 
4 - Data Explorer
4 - Data Explorer

Hi! I am using a react front end with Airtable as my backend, Everything works fine and I am to create and list records, but when I run a .update, I get an error.

In my console I get: Access to fetch at '' from origin 'http://localhost:3000' has been blocked by CORS policy: Method PATCH is not allowed by Access-Control-Allow-Methods in preflight response.

It seems to be that Airtable is not allowing PATCH requests specifically? I don’t think I need a proxy given everything else works just fine. Am I missing some configuration?

1 Reply 1
6 - Interface Innovator
6 - Interface Innovator

Does the airtable account associated with the api key you are using have read-only privileges on the base/workspace? This could be what’s causing the the request to fail the CORS prefilight.

Also I would definitely recommend making API requests from your backend so as not to expose your API key on your React front end.