cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

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

0 Likes
902

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

Accepted Solutions (0)

Answers (0)