cancel
Showing results for 
Search instead for 
Did you mean: 

PO REST Adapter - CORS headers

0 Kudos

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

Accepted Solutions (0)

Answers (1)

Answers (1)

yasha_dubey
Participant
0 Kudos

Hi Jan,

I too have the same issue. Where you able to achieve this ?

If yes, did u write custom adapter module ?

Thanks,
Pragya

0 Kudos

Hi Pragya,

No unfortunately not, not with the SAP REST adapter.

We've decided to use a reverse proxy.

Recently, I did come across the Advantco REST adapter and the latest release has CORS support out of the box on both sender and receiver.

Regards,

Jan