Skip to Content
0
Sep 27 at 02:48 PM

CORS '405 Method Not Allowed' when adding x-csrf-token to header to C4C ODATA Service

134 Views

Hi Experts,

We are trying to call C4C ODATA Service from external angular application hosted on SAP BTP.

We are using SAP App Router for enabling CORS.

Inorder to do POST, x-csrf-token is required and hence while adding the custom header to GET request

{'x-csrf-token':'fetch'} we are facing CORS error.

In short, if we add any custom headers we are facing this issue.

Please help us here.

Thanks & Regards

Shruthi

Attachments

cors.jpg (77.5 kB)