October 13, 2020
Estimated Post Reading Time ~

Binding products in AEMaaCs using proxy server | Archetype 24

In this article we will understand how we can bind the products in our AEMaaCs local instance. As things have been modified on usage of CIF with Archetype 24 and AEMaaCs.

For the configuration of the Magento endpoint and properties refer my article on archetype 24.

After doing all the configuration at http://localhost:4502/libs/cif/shell/content/configuration.html/conf/<project-name>/settings/cloudconfigs/commerce you might still not see the products under the commerce console in your local. Below is the error that shows up when you open the console.


This is because our AEM instance can’t access the Cross origin graphql proxy endpoint of magento that we configured earlier.


To get the products binded into your AEM Commerce console you need to pass your Magento endpoint through the proxy local server.
You can do it by using below command:

For Windows:
npx local-cors-proxy –proxyUrl https://<namespace&gt;.adobesandbox.com/ –port 3001 –proxyPartial “”

For Mac:
npx local-cors-proxy –proxyUrl https://<namespace&gt;.adobesandbox.com/ –port 3001 –proxyPartial ”



Once you setup you local proxy server now you need to update the proxy url in place of /api/graphql in configuration.


Now you will be able to see the products coming up as part of the AEM Commerce console.


By aem4beginner

No comments:

Post a Comment

If you have any doubts or questions, please let us know.