style: Fix formatting and spacing in multiple files
Some checks failed
Some checks failed
This commit is contained in:
parent
fa09a8533f
commit
617654caeb
5 changed files with 102 additions and 82 deletions
|
@ -6,13 +6,15 @@ export const httpInterceptor: HttpInterceptorFn = (req, next) => {
|
|||
const oauthStorage = inject(OAuthStorage);
|
||||
|
||||
if (oauthStorage.getItem('access_token')) {
|
||||
return next(req.clone({
|
||||
setHeaders: {
|
||||
'Authorization': 'Bearer ' + oauthStorage.getItem('access_token'),
|
||||
'Access-Control-Allow-Origin': '*',
|
||||
'Referrer-Policy': 'no-referrer',
|
||||
}
|
||||
}));
|
||||
return next(
|
||||
req.clone({
|
||||
setHeaders: {
|
||||
Authorization: 'Bearer ' + oauthStorage.getItem('access_token'),
|
||||
'Access-Control-Allow-Origin': '*',
|
||||
'Referrer-Policy': 'no-referrer',
|
||||
},
|
||||
})
|
||||
);
|
||||
} else {
|
||||
return next(req);
|
||||
}
|
||||
|
|
Reference in a new issue