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

use Content-Language header for auth bearer

This commit is contained in:
Kyle Spearrin
2017-09-14 10:12:13 -04:00
parent 4262e2cc1d
commit 595cf6c375

View File

@@ -12,7 +12,8 @@ angular
$qProvider.errorOnUnhandledRejections(false);
$locationProvider.hashPrefix('');
jwtOptionsProvider.config({
urlParam: 'access_token',
// Using Content-Language header since it is unused and is a CORS-safelisted header. This avoids pre-flights.
authHeader: 'Content-Language',
whiteListedDomains: appSettings.whitelistDomains
});
var refreshPromise;