You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 16, 2019. It is now read-only.
HI
code is as follows:
$.ajax({
type:'POST',
url: url,
beforeSend: function (xhrObj) {
xhrObj.setRequestHeader('Content-Type', 'application/json');
},
data:{},
success:function(data){},
error:function(data){},
});
I set request header Content-Type is application/json.But the actual request message header are as follows,: why is appended to the default message on the head:
Content-Type:application/x-www-form-urlencoded, application/json
i want remove application/x-www-form-urlencoded Media type ,leaving only application/json
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
HI
code is as follows:
$.ajax({
type:'POST',
url: url,
beforeSend: function (xhrObj) {
xhrObj.setRequestHeader('Content-Type', 'application/json');
},
data:{},
success:function(data){},
error:function(data){},
});
I set request header Content-Type is application/json.But the actual request message header are as follows,: why is appended to the default message on the head:
Content-Type:application/x-www-form-urlencoded, application/json
i want remove application/x-www-form-urlencoded Media type ,leaving only application/json
The text was updated successfully, but these errors were encountered: