Need to declare content type for app to recognize body as JSON

This commit is contained in:
mmcw-dev 2017-10-21 22:47:12 -04:00
parent d2d5458a70
commit 7e057bc924
1 changed files with 3 additions and 0 deletions

View File

@ -202,6 +202,8 @@ null==d?void 0:d))},attrHooks:{type:{set:function(a,b){if(!o.radioValue&&"radio"
$.ajax({
method : 'POST',
url : '/frame',
contentType: 'application/json; charset=utf-8',
dataType : 'json',
success : web.frameSuccess
});
}
@ -218,6 +220,7 @@ null==d?void 0:d))},attrHooks:{type:{set:function(a,b){if(!o.radioValue&&"radio"
method : 'POST',
url : '/dir',
body : JSON.stringify({ dir : dir}),
contentType: 'application/json; charset=utf-8',
dataType : 'json',
success : web.setDirSuccess
})