Using Microsoft ASP.NET WebHooks, I am getting the error message: "Expecting exactly one 'ms-signature' header field in the WebHook request but found 0. Please ensure exactly one 'ms-signature' header field"
$.ajax({
type: "POST",
url: "http://localhost:50003/api/webhooks/incoming/custom",
data: JSON.stringify({
WebHookUri: "http://localhost:50003/api/webhooks/incoming/custom",
Secret: "12345678901234567890123456789012",
Description: "My first WebHook!"
}),
contentType: "application/json; charset=utf-8",
"ms-signature": "3499c60eea227453c779de50fc84d315b9a55a20",
dataType: "json",
success: function (data, status) { alert(status); },
failure: function (errMsg) { alert(errMsg); }
})
.done(function (data) {
alert(data);
})
.fail(function (jqXHR, textStatus) {
console.log(jqXHR);
alert('Something went wrong: ' + textStatus);
})