cancel
Showing results for 
Search instead for 
Did you mean: 

SAP Foundry remove headers from request

matteoprinetti
Participant
0 Kudos

I have a simple Cap application running on cf, and im passing a custom header in the request.

* running locally on BAS and calling the service with RESTMAN the header arrives in the handler and I can see it in req.headers.

* running on CF and calling the service with RESTMAN the header never arrives and is removed (I guess from CF).

In the NEO for HTML apps we had the "headerWhiteList" option to allow headers to reach the application.

What is the equivalent in Cloud Foundry ? How do I whitelist my custom headers ? Or is this filtered out by the production version of cds ?

Cguttikonda
Explorer
0 Kudos

Hi,

Does using a destination with the additonal headers make sense to your case.

matteoprinetti
Participant
0 Kudos

Hi, yes it makes sense - we carry additional infos in the headers (for example Android Device id, Geo Location etc) which are used for statical information - we dont want to pollute every single Odata entitiy with this information.

Hence is sent in headers, extracted in the cap request handler and written in a separate database.

The actual workaround is using the "slug" header which is NOT blocked by CF.

So it would be nice to find out HOW we can steer which headers should be passed to our app (not only CAP but Node etc).

Accepted Solutions (0)

Answers (0)