Integration Apigee On Premise with SAP On-Premise

Hello,

We need to create proxies to expose SAP On-Premise services and we have some problems.

Their SAP version works with OData V4 and doesn't allow use OAuth security and only allows the sessions cookies and CRSF token integration.

We need to obtain multiple "set-cookie" headers to send later in a "Cookie" header but we have the next problem:
- Apigee add the values of all "set-cookie" headers in only one header with all the values separated by commas.

E.G.
Response headers:
- set-cookie: value1
- set-cookie: value2

Apigee save:
- set-cookie: value1, value2

Then, when we send the saved value in subsequent requests, the cookie value will be "value1, value2" and this is a mistake because the standard separator to the "Cookie" header is a semicolon.

With this in mind:
- Is it possible to change that Apigee concat all the "set-cookie" headers with commas? It is possible keep them separated?
- Do you know if exists other way to integrate correctly Apigee On Premise to SAP On Premise Odata V4?

Best regards.

0 1 111
1 REPLY 1

We need more information. HOW are you manipulating the headers? Can you share the policies you are using and how they are configured?

Just so you know, RFC9110, which governs all semantics for HTTP, including headers, clearly states that multi fields should always be delimited by commas.

In any case, you could use Apigee's Javascript policy to craft the behavior you're backend expects. You wouldn't be the first person to develop something in contradiction to a RFC. YMMV. Good luck.