AJAX Doesn’t POST To SharePoint List Leaving 0 Errors/Alerts

I am trying to post to a SharePoint list via an HTML form that I have created, and for some reason, it doesn’t log any error to tell me why it doesn’t post through. I have created POST requests before “identical to this” that work, but this one doesn’t want to?

Here is my form:

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name = "viewport" content = "width=device-width, initial-scale=1.0">
    <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css" integrity="sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh" crossorigin="anonymous">
    <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
    <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/js/bootstrap.min.js" integrity="sha384-wfSDF2E50Y2D1uUdj0O3uMBJnjuUD4Ih7YwaYd1iqfktj0Uod8GCExl3Og8ifwB6" crossorigin="anonymous"></script>
    <title>Referral Form</title>
  </head>
<body>
  <button type="button" onclick="openModal()" class="btn btn-primary" data-toggle="modal" data-target="#myModal">Employee Referral Form</button>

  <div class="modal fade bd-example-modal-lg" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myLargeModalLabel" aria-hidden="true">
    <div class="modal-dialog modal-lg">
      <div class="modal-content">
        <div class="modal-header d-block">
          <button type="button" class="close float-right" data-dismiss="modal" aria-hidden="true">&times;</button>
          <h4 class="modal-title text-center" id="myModalLabel">Referral Form</h4>
        </div>
<div class="modal-header d-block">
  <form id="myForm" type="post" runat="server" onsubmit="sConsole(event)">
    <SharePoint:FormDigest ID="FormDigest1" runat="server">
      <fieldset>
    <div class="required">
    <div class="row">
      <div class="col">
        <label for="inputName">Employee Name</label>
        <input type="text" name="inputName" id="inputName" class="form-control">
        <br><br>
        <label for="inputReferent">Referent Name</label>
        <input type="text" name="inputReferent" id="inputReferent" class="form-control">
        <br><br>
        <label for="inputRefDate">Referral Date</label>
        <input type="date" name="inputRefDate" id="inputRefDate" class="form-control">
        <br><br>
        <label for="inputRefEmail">Referent Email</label>
        <input type="text" name="inputRefEmail" id="inputRefEmail" class="form-control">
      </div>
      <div class="col">
        <label for="inputRefPhone">Referent Phone #</label>
        <input type="text" name="inputRefPhone" id="inputRefPhone" class="form-control">
          <br><br>
        <label for="inputRefStat">Referent Employment Status</label>
        <select name="inputRefStat" id="inputRefStat" class="form-control">
          <option value="Employed">Employed</option>
          <option value="Unemployed">Unemployed</option>
          <option value="Seeking">Seeking Employment</option>
        </select>
        <br><br>
        <label for="inputRefPos">Position Applied For</label>
        <input id="inputRefPos" name="inputRefPos" class="form-control">
        <br><br>
        <label for="inputRefDateApp">Date Applied</label>
        <input type="date" name="inputRefDateApp" id="inputRefDateApp" class="form-control"> 
      </div>
      </div>
    </div>
    <div class="submitbtn">
      <button type="submit" id="btnSubmit" class="btn btn-primary">Submit</button>
    </div>
  </fieldset>
  </SharePoint:FormDigest>
  </form>
  </div>
</div>
</div>
</div>
</body>

Here is my JS and PostItem();

function openModal() {
  $('#myModal').modal('show'); 
}

$("#btnSubmit").click(function(e) {
    PostItem();
});

function PostItem() {
            return getFormDigest("https://baseurl.sharepoint.com/sites/Projects/Sandbox").then(function(digestData) {
                console.log(digestData.d.GetContextWebInformation.FormDigestValue);
                $.ajax({
                    async: true, 
                    url: "https://baseurl.sharepoint.com/sites/Projects/Sandbox/_api/web/lists/getbytitle('Notify')/items",
                    method: "POST", //Specifies the operation to create the list item  
                    data: JSON.stringify({  
                        '__metadata': {  
                            'type': getItemTypeForListName("Notify") // it defines the ListEnitityTypeName  
                        }, 
                        Employee: $("#inputName").val(),
                        Referent: $("inputReferent"),
                        RefDate: $("#inputRefDate").val(),
                        ReferentEmail: $("#inputRefEmail").val(),
                        ReferentPhone: $("#inputRefPhone").val(),
                        RefEmpStatus: $("#inputRefStat").val(),
                        Position: $("#inputRefPos").val(),
                        DateApplied: $("#inputRefDateApp").val()
                    }),
                    headers: {
                        "content-type": "application/json;odata=verbose", //It defines the content type as JSON
                        "X-RequestDigest": digestData.d.GetContextWebInformation.FormDigestValue,
                        "Accept": "application/json;odata=verbose",
                        "If-Match": "*"
                    },
                    success: function(data) {
                        alert('Success'); // Used sweet alert for success message
                    },
                    error: function(error) {
                        alert(JSON.stringify(error));
                        console.log(JSON.stringify(error));
    
                    }
    
                });
            });
        }
            function getItemTypeForListName(listName) {
                var itemType = "SP.Data." + listName.charAt(0).toUpperCase() + listName.slice(1) + "ListName";
                //var encItemType = itemType.replace(/s/g,'_x0020_'); No space in my list name, this was from previous list with space in name
                //return(encItemType);
                return(itemType);
    }       
        function getFormDigest(baseurl) {
    
            return $.ajax({
    
                url: "https://baseurl.sharepoint.com/sites/Projects/Sandbox/_api/contextInfo",
                method: 'POST',
                headers: {
                    'Accept': 'application/json; odata=verbose'
                }
    
            });
    }