Author Topic: Angular 8 HTTP interceptor  (Read 1913 times)

[email protected]

  • Pro Enterprise
  • Newbie
  • *
  • Posts: 5
    • View Profile
Angular 8 HTTP interceptor
« on: April 01, 2020, 01:50:53 pm »
Hi,

I am using Angular 8 with remote calls to database to fetch data.

I am unable to send http header while performing the remote calls. How do I send HTTP Headers.?

The requests sent, are not getting registered in the HTTP Interceptor to add custom header for doing remote database calls.

Thanks in advance.

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6310
    • View Profile
Re: Angular 8 HTTP interceptor
« Reply #1 on: April 01, 2020, 05:10:12 pm »
dataModel.beforeSend callback can be used to send custom http headers.

https://paramquery.com/pro/api#option-dataModel-beforeSend