1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-12-23 16:38:45 +01:00

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

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();
},