Skip to content

Commit

Permalink
use Content-Language header for auth bearer
Browse files Browse the repository at this point in the history
  • Loading branch information
kspearrin committed Sep 14, 2017
1 parent 4262e2c commit 595cf6c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/app/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 595cf6c

Please sign in to comment.