🏡K
Size: a a a
🏡K
AS
АД
K✔
AS
ПА
AS
intercept(вроде если посмотреть то в req в блоке headers есть заголовки но тот запрос который отображается в браузере не содержит моих заголовках
req: HttpRequest<any>,
next: HttpHandler): Observable<HttpEvent<any>> {
// console.log(this.auth.isAuthenticated());
if (this.auth.isAuthenticated()) {
// console.log(req);
// @ts-ignore
req = req.clone({
setHeaders: {
'Content-type': 'application/json, text/plain, */*',
'Authorization': sessionStorage.getItem('token'),
// Cookie: this.cookieService.get('user')
}
});
}
return next.handle(req)
K✔
K✔
AS
S
R
R
AS
R
R
S
AS
Вキ