我在Angular 7中有以下服务: import { Injectable } from '@angular/core'; this.currentUserSubject = new BehaviorSubject(null);
public get currentUserValue():如果我尝试订阅,比如.pipe(map(.)
我试图从需要授权头的API中获取数据。它对邮递员和节点非常有用,但是当我尝试使用它的角度时,它只返回401。有人能在我的请求中发现错误吗?花了很长时间尝试但却找不到解决办法。/common/http';export class DataService{
constructor(private authH