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

Cors error while connecting sap build apps with sap commerce

pandeysuresh06
Participant
0 Likes
716

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.

Accepted Solutions (0)

Answers (1)

Answers (1)

agpekka
Product and Topic Expert
Product and Topic Expert

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.