cancel
Showing results for 
Search instead for 
Did you mean: 

Error when uploading a CSV file from file uploader to trigger a rest api exposed from server.js file

spirit2681
Explorer

Hi All,

I have exposed a rest endpoint for POST HTTP call by adding some logic in server.js file using the blog:

https://blogs.sap.com/2021/08/12/sap-cloud-application-programming-model-cap-simple-file-upload-serv...

I am able to upload the file successfully in local environment but when it is deployed to SAP BTP it gives 403 Forbidden Error as shown below:

Then I tried to add a route in managed app router:

And adjusted the MTA as well with this destination:

Please let me know how to resolve this issue.

Best regards,

Sonal

View Entire Topic
spirit2681
Explorer
0 Kudos

Hi gregor.wolf / iinside ,

Can you please suggest any other way to avoid CSRF token in the post call to backend service?

Best regards,

Sonal

martinstenzig
Contributor
0 Kudos

Are you using the S-User service or IAS in your sub account trust relationship?