I am creating a webapi in c# where it’s expecting payload in body. The windows auth is enabled on IIS.
public class GenericController : ApiController
{
[Route("api/{version}/{user}/Generic/UpdateData")]
[HttpPost]
public HttpResponseMessage UpdateData([FromBody] GenericPayload parameter)
{
}
}
Every time I attempt to access it from React or JavaScript code, I encounter an access denied problem. I’m interested in finding out if it’s even feasible to achieve success with this call using JavaScript.