Adding a HTTP header to the Angular HttpClient doesn't send the header, why?

前端 未结 9 965
孤街浪徒
孤街浪徒 2020-11-22 05:45

Here is my code:

import { HttpClient, HttpErrorResponse, HttpHeaders } from \'@angular/common/http\';
9条回答
  •  北海茫月
    2020-11-22 06:24

    In my legacy app Array.from of prototype js was conflicting with angular's Array.from that was causing this problem. I resolved it by saving angular's Array.from version and reassigning it after prototype load.

提交回复
热议问题