Strapi v4 requires post requests to be wrapped in with "data". So in the /sections/lead-form.js edit this section:
body: JSON.stringify({ email: values.email, location: data.location }body: JSON.stringify({data:{ email: values.email, location: data.location }}
Hey guys,
Strapi v4 requires post requests to be wrapped in with "data". So in the /sections/lead-form.js edit this section:
body: JSON.stringify({ email: values.email, location: data.location }
body: JSON.stringify({data:{ email: values.email, location: data.location }}