Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

PATCH function not working in JQuery Ajax

0 Likes
1,301

Hi guys I'm trying to work out the patch function but not working in my server. See below the error.
i don't know the preflight error.

and this is my sample code.

$.ajax({
        url: "https://192.1.3.92:50000/b1s/v1/BusinessPartners('TC001')",
        xhrFields: {
            withCredentials: true
        },data: jData,
        type: "PATCH",
        dataType: "json",

        success: function(json) {
            console.log("Ok");
        },

        error: function(errorThrown) {
            console.log("Error: " + errorThrown);
        }
    });

0 REPLIES 0