小编jol*_*lis的帖子

当我启动角度应用程序时如何获取第一个http请求的标头(http://localhost:4200/)

我希望获取第一个 http 请求的标头http://localhost:4200/

为了启动我的应用程序,我转到 URL http://localhost:4200/,我想在控制台中写入 http 入口的标头。

有谁知道这是否可能?

我尝试使用拦截器,但我只拦截应用程序的 http 请求和响应排序。

header http angular-http-interceptors angular

6
推荐指数
1
解决办法
1333
查看次数

标签 统计

angular ×1

angular-http-interceptors ×1

header ×1

http ×1