1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-10-31 08:20:37 +01: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;