Quantcast
Channel: SCN : All Content - Process Integration (PI) & SOA Middleware
Viewing all articles
Browse latest Browse all 7030

PO REST Adapter - CORS headers

$
0
0

Dear All,

 

When consuming REST services from a web-application, the browsers "Same Origin Policy" prevents the execution when the application is hosted on another server than the REST service.

One solution is to use a reverse proxy to handle the different origins.

Another solution is to set the CORS header "Access-Control-Allow-Origin" on the provider side.

We've implemented this in SAP Netweaver GW services where there's an 'SET_HEADER' method available.

 

I would like to do the same in the PO REST adapter through a custom adapter module.

 

My question is: is this possible and if so how would I access the http headers from a custom adapter module?

 

Thanks.

Jan


Viewing all articles
Browse latest Browse all 7030

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>