Home > Net >  ASP.NET Core jQuery POST - Incorrect Content-Type despite correctly formatted headers
ASP.NET Core jQuery POST - Incorrect Content-Type despite correctly formatted headers

Time:12-10

I have researched similar threads, such as enter image description here

What might be wrong with my request?

CodePudding user response:

you have to fix the action

[Route("~/Merge")]
public IActionResult Index(string example)
{
       return Ok ( new { example = example } );
}
  • Related