mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-23 11:56:00 +01:00
explicitly set data types for all ajax calls
This commit is contained in:
parent
bb091a2636
commit
fb94764d7a
@ -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();
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user