Is your feature request related to a problem? Please describe.
Our directus instances are behind a firewall. To access them, we need to send some additional headers in the request.
Describe the solution you'd like
I previously tried to sync using the directus sdk directly. There I could add the headers in the onRequest-hook of the rest-client:
Is your feature request related to a problem? Please describe. Our directus instances are behind a firewall. To access them, we need to send some additional headers in the request.
Describe the solution you'd like I previously tried to sync using the directus sdk directly. There I could add the headers in the
onRequest
-hook of the rest-client:It would be nice, if there was an option to configure the client and do the same here.
Describe alternatives you've considered I tried modifying the client in the
onDump
hook but it seems there are some requests that are sent earlier.Additional context I think I could add this myself, would you be interested in a pull request for this?