Skip to Content
0
Jun 24, 2020 at 08:32 AM

B1if: Adding http header to response does not work as expected

80 Views

I'm trying to add a CORS header to the HTTP response generated by my B1if scenario (http inbound). According to the adapter documentation ("HTTP Incoming Call (Inbuilt)") a "Runtime Configuration Property" named "httpheader.???" has to be set in order to achieve that.

I tried to add that property as follows in my atom0:

...
 <xsl:template name="transform">
        <xsl:attribute name="httpheader.Access-Control-Allow-Origin">*</xsl:attribute>
        <io xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="urn:com.sap.b1i.bizprocessor:bizatoms" pltype="json" xsi:schemaLocation="urn:com.sap.b1i.bizprocessor:bizatoms json_pltype.xsd">
            <array>
...

This (and numerous variations) does not work for me – there's no corresponding header present in B1if's http response, neither for the POST nor the OPTIONS request.

What am I doing wrong?