ParamQuery grid support forum

General Category => ParamQuery Pro Evaluation Support => Topic started by: support@clearviewsys.com on April 01, 2020, 01:50:53 pm

Title: Angular 8 HTTP interceptor
Post by: support@clearviewsys.com 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.
Title: Re: Angular 8 HTTP interceptor
Post by: paramvir 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