PUT method not working

My html form

<form id="updateIssue">
   ...
   <button type="submit">Update</button>
</form>

My AJAX call:

$('#updateIssue').submit(function (e) {
	e.preventDefault();
	$.ajax({
		url: url,
		data: $('#updateIssue').serialize(),
		type: "PUT",               
		success: function(data) {
			console.log(data);
			$('#show-result').text(JSON.stringify(data));
			window.location.reload(true); 
		}
    });
});

image

My form won’t submit and the only feedback I have is in chrome where it highlights the $ajax line.
I just can’t seem to get PUT to work.

Make sure JQuery CDN is added to your project!?

I’ve had to pick apart the code. I was getting a 500 error.
I was a middleware function causing the issue.