I’m not able to send PATCH or PUT requests to my DATA API even with “Modify via API” checked in my database privacy settings.
In fact, when my front is sending a PATCH or PUT request, the allowed methods given in the OPTION preflight response from Bubble include only GET, POST and OPTIONS.
How can I had PATCH or PUT in allowed methods as “Modify via API” seems to not doing it ?
I can add some sort of authentication later, the issue is not there.
For now, with the current privacy I should be able to Modify via the API but I can’t and this is not because of the privacy configuration, it’s because the preflight (OPTIONS) request seems to not allow PUT/PATCH/DELETE requests.
So even with some sort of authentication, It would not change the result.
A pratical example can confirm that.
Using Postman, you can send successful PUT, PATCH or DELETE requests depending on the data privacy configuration.
And with a same data privacy configuration, requests sent from an external front-end interface will fail just because of the OPTIONS request that prevent PUT, PATCH and DELETE requests.