I have this contact form using netlify forms, and I’m using AJAX to submit it. In the examples in the docs, it says fetch('/', ...). This doesn’t really work as I have nothing to handle the form at /.
So what’s the URL I should use to POST the form’s contents so that netflify forms handles it?
You don’t have to change the url path for the fetch request. Once your application is hosted on Netlify, your form html with Netlify form configurations and AJAX is detected and it is properly handled to submit the forms.
You can also check the Netlify forum link below as the problem is similar to yours.