Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8538

Re: Post oData method in Chrome through Integration Gateway

$
0
0

Hi Jitendra,

 

Please try adding this code at the top of get_entityset method.

 

DATA: ls_header TYPE ihttpnvp. 

ls_header-name = 'Access-Control-Allow-Origin'

ls_header-value = '*'

/iwbep/if_mgw_conv_srv_runtime~set_header( ls_header ). 

 

We found that although we can see the return header response from Browsers (Chrome or Firefox) but we cannot access it via Javascript because Access-Control-Allow-Origin header didn't get return or null.


The code that I added in the get_entityset method is to add Access-Control-Allow-Origin with value * in the header response. This will allow me to see headers data in javascript.


Please try it and let me know how it goes.


Cheers,

Pan


Viewing all articles
Browse latest Browse all 8538

Trending Articles



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