I am using Angular 4. Also used the http interceptor for any http request. https://angular.io/api/common/http/HttpInterceptor
But I am using one of the post request using xmlHttpRequest for some file upload event. headers are setting properly in http post request (this.http.post(...)). But In xmlHttpRequest, interceptor is not being called. so cannot set the header. How can i handle the http interceptor in xmlHttpRequest(post method)?