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