Upload picture to document information extraction via Custom JavaScript or SAP BTP Destin-CORS ERROR

Hi,

I have already refered – https://community.sap.com/t5/technology-q-a/issue-with-sap-btp-destination-rest-api-integration-sap-build-apps/qaq-p/12817959/comment-id/4824464#M4824464 And  https://community.sap.com/t5/technology-q-a/upload-picture-to-document-information-extraction-via-custom-javascript-in/qaq-p/12781887

I am unable to POST my Image/document to document information extraction ie https://aiservices-dox.cfapps.eu10.hana.ondemand.com/document-information-extraction/v1/document/jobs

I am getting CORS error.

Error: TypeError: Failed to fetch. Does the server allow CORS?status: undefined

Please suggest which is the correct approch to do POST call though SAP Build apps to SAP Doc info extraction. 

Scroll to Top