hello.
I have a question.
I want to use my personal API in SFRA, but I don't know how to do it.
Help me.
Error message:Access to XMLHttpRequest at '~~MY API~~~' from origin 'https://zyac-123.sandbox.us01.dx.commercecloud.salesforce.com' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource.
CORS does not support requests for unauthenticated resources, including OAuth endpoints.
I recommend adding a blocked URL to SFDC’s CORS whitelist If whitelisting does not help, you can try adding the header "Access-Control-Allow-Origin" to the request you forward to the salesforce
Reference Articles: ------------------------- https://developer.salesforce.com/forums/?id=9060G000000I7mfQAC