It looks like the webhook form submits with content-typetext/plain;charset=UTF-8. Is there a way to have it submit with content-typeapplication/json? I'm playing with using Directus to receive form submissions, and it requires a JSON payload
Html forms in general don't support json content type, but we are cooking something to enable this and setting headers etc. basically using resource in forms
yeah, it should be a good practice for any api endpoint to accept form encoding as well, but there is no consistency, so we really need to be able to send json too
https://github.com/webstudio-is/webstudio/issues/3872 also follow this one, with this you can not only pass json data to the client-side scripts, but also once the forms fetch json, pass that json to client-side js and do anything with it that is completely custom