How to Send a Custom HTTP Header in All SAPUI5 OData V4 Calls?

Hi, experts!

I’m looking for a way to send a custom HTTP header in all OData V4 requests from a SAPUI5 application to the backend.

Ideally, I’d like to dynamically bind a property from a JSON model to this custom header. This way, every request (such as a table refresh or any control binding) would automatically include the updated value from the model.

Does anyone have insights or recommendations on how to achieve this?

Thanks in advance!

Scroll to Top