Skip to Content
0
Jun 02 at 05:22 AM

Question about SAP Gateway oData Expose - Have CORS problem.

98 Views

Hello.

I'm currently setting HTTP Response Header to send 'Access-Control-Request--Origin' to pass CORS check.

But I can't response back HTTP Header to caller.

I've tried these things -

- In SEGW, redefine GET_ENTITY / GET_ENTITYSET to set http header (using /iwbep/if_mgw_conv_srv_runtime~set_header),

- In SICF, define handler by Z Class ( IF_HTTP_EXTENSION~HANDLE_REQUEST, server->response->set_header_field)

Any help would be appreciated!