2022 Sep 29 8:40 PM
Hi everybody!
I'm developping a e-commerce webapp for my client, using Nuxt.js (js) for the Front and Laravel for the back (PHP).
I'm trying to communicate with SAP (get products, send command, get order status), using classic PHP.
In local development, everything works perfectly : login to SAP, and the different actions mentioned above.
Unfortunately, in production, all calls requiring the SAP api return an error.
http://clients.vincent-blondaux.fr/sap/
Access to XMLHttpRequest at 'https://[api.domain.fr/api/orders/from/1' from origin 'https://staging.domain.fr' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
When i'm calling SAP directly from BACK, i have a connection timed out.
Curl error: Failed to connect to rds.creamande.privatcloud.biz port 50000: Connection timed out
I can't figure out if the problem is with me or with SAP. I don't have my hands on SAP (whitelist ? Allowed domain ?).
Someone can help me please?
I don't have any solution 😞
2022 Sep 29 8:40 PM
Thank you for visiting SAP Community to get answers to your questions. Since you're asking a question here for the first time, I recommend that you familiarize yourself with: https://community.sap.com/resources/questions-and-answers, as it provides tips for preparing questions that draw responses from our members.
For example, you can:
- outline what steps you took to find answers (and why they weren't helpful)
- share screenshots of what you've seen/done
- make sure you've applied the appropriate tags
- use a more descriptive subject line
The more details you provide, the more likely it is that members will be able to respond. Feel free to also take our Q&A tutorial at: https://developers.sap.com/tutorials/community-qa.html
Should you wish, you can revise your question by selecting Actions, then Edit.
By adding a picture to your profile you encourage readers to respond: https://developers.sap.com/tutorials/community-profile.html