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:
@@ -12,7 +12,8 @@ angular
|
|||||||
$qProvider.errorOnUnhandledRejections(false);
|
$qProvider.errorOnUnhandledRejections(false);
|
||||||
$locationProvider.hashPrefix('');
|
$locationProvider.hashPrefix('');
|
||||||
jwtOptionsProvider.config({
|
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
|
whiteListedDomains: appSettings.whitelistDomains
|
||||||
});
|
});
|
||||||
var refreshPromise;
|
var refreshPromise;
|
||||||
|
|||||||
Reference in New Issue
Block a user