I need to set custom headers for my requests in xrpl.js in order to connect to a Blockchain Service with an API Key. I see that ConnectionOptions
has an authorization
field, which then is used as
options.headers = { Authorization: `Basic ${base64}` }
in createWebSocket
, but my service requires
options.headers = { 'x-api-key': '<My API Key>' }
Is there any way to do that?