fetch(url, { method: 'POST', headers: { 'X-CSRF-TOKEN': "{{csrf_token()}}", 'Content-Type': 'application/json' }, body:JSON.stringify(postData) })