1
0
mirror of https://github.com/bitwarden/web synced 2025-12-29 06:33:28 +00:00

send device type header

This commit is contained in:
Kyle Spearrin
2017-12-18 13:37:06 -05:00
parent f54884eb79
commit 8d6a96074d
5 changed files with 68 additions and 3 deletions

View File

@@ -1,7 +1,7 @@
angular
.module('bit.services')
.factory('apiService', function ($resource, tokenService, appSettings, $httpParamSerializer) {
.factory('apiService', function ($resource, tokenService, appSettings, $httpParamSerializer, utilsService) {
var _service = {},
_apiUri = appSettings.apiUri,
_identityUri = appSettings.identityUri;
@@ -190,7 +190,10 @@
token: {
url: _identityUri + '/connect/token',
method: 'POST',
headers: { 'Content-Type': 'application/x-www-form-urlencoded; charset=utf-8' },
headers: {
'Content-Type': 'application/x-www-form-urlencoded; charset=utf-8',
'Device-Type': utilsService.getDeviceType()
},
transformRequest: transformUrlEncoded,
skipAuthorization: true,
params: {}