400 Bad Request when sending JSON from JavaScript to C# in ASP.NET Razor Pages
I'm trying to send JSON data from JavaScript to my C# code in an ASP.NET Razor Pages project, but I keep getting a "400 Bad Request" error. The goal is to parse and handle the data in the C# backend.…