Skip to main content Skip to footer

Search Crosser Knowledge Base

Use the HTTP Request module with custom headers

Did you know that the HTTP Request module can fetch custom headers from the incoming message? A pretty common scenario is that you want to add a Bearer token from an external system in the HTTP Request. To achieve this, you can fetch the token from the incoming message via template syntax and use it in the Message Template as shown below. The Message Template module will then map the token value into the message.

Example flow

Crosser Tech Tips 92_1

Message Template module

Crosser Tech Tip 92

Crosser Tech tip 92

HTTP Request module

Crosser Tech Tips 92

Tip: Instead of requesting a new token every time, you can store the token in the Key/Value Store and refresh it according to the expiration time.

Crosser Tech Tip 92

About the author

David Nienhaus | Senior Solution Engineer

David is a Senior Solution Engineer at Crosser. He has over 15 years experience working with software integration and digitization projects for critical infrastructure.
His engineering background gives him the understanding and focus needed to solve customer use cases in the most efficient and successful way.