added the possibility of passing custom headers to requests
The idea of this patch is to enable the user to pass custom headers. For instance, it might be the case that the user needs to pass a refresh token or a custom identifier from the frontend app to validate the origin of the request. At this point, I took a quick look at the source code and hopefully managed to do it right or at least start on the right path for this update on the sdk.