Quantcast
Channel: SCN : All Content - SAP Gateway
Viewing all articles
Browse latest Browse all 2823

ODATA - Where to set the Header

$
0
0

Dear All

I have created a Odata service. It is working in browser.

 

However, It is not accessed from the Jquery Ajax

 

It is adviced that to include a

 

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

ls_header-value = '<server>:<port>'.

/iwbep/if_mgw_conv_srv_runtime~set_header( ls_header ).

 

.

But, I am confused in which method I should add it.

 

Can Someone help me

 

My Class name

ZCL_ZGL2_DPC_EXT

My mehtod for entityt set GLLISTSET_GET_ENTITYSET

 

do i need to add it inthis method?

 

Regards,

Venkat


Viewing all articles
Browse latest Browse all 2823

Trending Articles



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