on 08-09-2023 9:01 AM
I'm tying to build an app in SAP Build apps to capture picture of invoice and upload it to document information extraction.
To upload image to document information extraction I used custom JavaScript and its throwing the following CORS error:
Do we have a fix for this or any other way to upload image to document information extraction?
Hi Sushama,
the error that you observe is a security measure enforced by your browser based on information retrieved from the server that you use to deliver the web page and the script. There are two ways to mitigate this:
You can find more information on CORS here: https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS
You might also consider calling the DOX service from the back-end rather than from the front-end.
Best regards,
Manuel
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
you can install cors lib , so you will not have any issues after that in SAP Build APps
npm i cors
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
83 | |
11 | |
8 | |
8 | |
6 | |
6 | |
6 | |
6 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.