Ajax Call in MVC Core2 Bad Request
问题 I'm refracting a website over to MVC Core 2. For most of my Ajax calls I've been using the .Get() shorthand with no problem. I have one AJAX call that needs to use $ajax() and for some reason I keep getting a bad Request error. Keep in mind this code is currently working in an aspx website (other than the changed url when I refactored). function get_Data() { $.ajax({ type: "POST", contentType: "application/json; charset=utf-8", url: "/Home/Get_Index_Values", data: JSON.stringify(), dataType: