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