cancel
Showing results for 
Search instead for 
Did you mean: 

How to include header "Access-Control-Allow-Origin" as part of PI response

Former Member
0 Kudos

Hi Guys

Need some help here.

My mobile app vendor is invoking my web service via SAP PI. However they require a response header - Access-Control-Allow-Origin in order to access the services due to CORS. They claim that their invocation is blocked due to javascript's security for cross-domain access via xmlhttprequest calls.

Does anyone has any idea on how to go about doing it ?

Current Process:

Mobile Apps --> SAP PI --> Web Service running on IIS (.NET)

Will appreciate any reply/help.

Thanks

Bertina

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

I have had the same problem, but the only solution that I have found is through a proxy.

I have no found an answer for this iether. I know that there are header fields that can be added to the server of the secondary services (ie: the PI server hosting the CostCenter webservice),
however, I have not been able to determine from SAP’s documentation where to
successfully place these headers (or if PI even supports them)

Former Member
0 Kudos

Hi Ming,

I know this issue is pretty old, never the less I want to ask If you found a solution for the problem?

Thanks,

ben

iaki_vila
Active Contributor
0 Kudos

Hi Ming,

For Interoperability between SAP PI and .NET applications this link can be useful for you http://scn.sap.com/docs/DOC-3453

I haven't heard anything about Access-Control-Allow-Origin, but googling it, it's about a field in the http header, isn't it?, you can add fields with ASMA in the HTTP sender http://help.sap.com/saphelp_nwpi711/helpdata/en/43/64db4daf9f30b4e10000000a11466f/content.htm

Regards.