AleksandrRogov / DynamicsWebApi

DynamicsWebApi is a Microsoft Dataverse Web API helper library for JavaScript & TypeScript

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Allow custom headers to be passed to the request

dnns6 opened this issue · comments

commented

Situation: I have a legacy Dynamics 365 (on prem) instance with a custom authentication. I can bypass that auth with specific http-headers (Coookies to be precise)

Request: Allow custom headers to be passed via the DynamicsWebApi config object which are added to each request. (Alternative: in the request object for each request... slightly more effort for me, but it would work)

Thanks for considering :-)
And thanks for the solution!!

hi @dnns6 ,

Manual headers was something that I have been thinking of implementing for quite a long time, but I could not find a real use case where it was needed and that's why I have never done it. Well... now I have a use case! :) Thank you for creating a case and I will see what can be done.
Also, If I do this, most probably it will be to included it in a v2 or in one of the future patches, because I am very close to the release and adding new features to v1 is not feasible atm. Hope it's ok.

Thanks

Implemented in v.2.1.0.