on ‎2023 Sep 04 3:37 PM
Hi Team I am getting cors error while connecting to sap build apps for direct rest API integration. Any help would be highly appreciated. I can see the request coming to ngrok but it is coming as OPTIONS not GET. I am passing these accept and authroization token also in request and calling get collection to fetch the orders for the customers.
Request clarification before answering.
That options call is a standard preflight request made to resolve cors settings from the server:
https://developer.mozilla.org/en-US/docs/Glossary/Preflight_request
So you should setup cors handling properly to api server you are using.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.