Base64 encoding a value on a Custom Header

I am integrating with an API that needs an X-### header in the HTTP request but it needs the contents of that header to be base64 encoded. Is it possible to create a custom header that does that?

There is a library that can do the Base64 encoding

1 Like