AJAX Posts In Razor Pages And HTTP 400 Errors

added by DotNetKicks
7/15/2019 4:48:56 PM

1 Kicks, 121 Views

Every other day or so it seems, a new question is posted to one of the community forums that cover ASP.NET Core Razor Pages asking why an AJAX post doesn't appear to work, or results in an HTTP 400 error. This article explains the most common causes, and offers a number of solutions.