explicitly set data types for all ajax calls

This commit is contained in:
Kyle Spearrin 2016-12-19 09:46:39 -05:00
parent bb091a2636
commit fb94764d7a
1 changed files with 3 additions and 0 deletions

View File

@ -70,6 +70,7 @@ function initApiService() {
url: self.baseUrl + '/accounts/password-hint',
data: JSON.stringify(request),
contentType: 'application/json; charset=utf-8',
dataType: 'json',
success: function (response) {
success();
},
@ -86,6 +87,7 @@ function initApiService() {
url: self.baseUrl + '/accounts/register',
data: JSON.stringify(request),
contentType: 'application/json; charset=utf-8',
dataType: 'json',
success: function (response) {
success();
},
@ -256,6 +258,7 @@ function initApiService() {
$.ajax({
type: 'POST',
url: self.baseUrl + '/ciphers/' + id + '/delete?access_token=' + token,
dataType: 'json',
success: function (response) {
success();
},