AleksandrRogov / DynamicsWebApi

DynamicsWebApi is a Microsoft Dataverse Web API helper library for JavaScript & TypeScript
MIT License
268 stars 58 forks source link

Allow custom headers to be passed to the request #151

Closed dnns6 closed 1 year ago

dnns6 commented 1 year ago

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!!

AleksandrRogov commented 1 year ago

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

AleksandrRogov commented 1 year ago

Implemented in v.2.1.0.