THis is the error log from browser console XMLHttpRequest cannot load http://domain.com/xx/xxxxxxxx. Response for preflight has invalid HTTP status code 404
This is
You should send body without JSON.stringify :
JSON.stringify
let body = { "name": name, "recipient": recipient };
Good Luck