Ajax Post Call
<script>window.onload = function(){
let aData = {"profile": "developer", "to": "rashid.jorve@live.in"};
console.log(FormData);
$.ajax({
type: "POST",
url: "/api/saveProfile",
data: JSON.stringify(aData),
contentType: "application/json",
success: function(){
alert("Request was successful");
}
});
};
Defeated Dormouse