AEM as a Cloud Service + CIF Addon - /api/graphql not working on Publish SDK | Community
Skip to main content
Level 3
February 23, 2022
Solved

AEM as a Cloud Service + CIF Addon - /api/graphql not working on Publish SDK

  • February 23, 2022
  • 2 replies
  • 1991 views

Hi All,

One quick question. As of last week I had completely setup the AEM SDK with the Venia store front with all the components working. When I move the setup the AEM publish SDK, I am encountering one issue.

The /api/graphql is throwing 403 errors which means no frontend commerce operation is happening on the storefront.

I tried adding the /api/graphql to the CSRF filter's exclude list and even removed the POST method from there.

 

After this I still 403 on GET request of /api/graphql and the following on POST request.

 

I am I missing some setting?

 

Note: on the sling servlet resolver config, I have added the /api/graphql but there is no change.

 

 

There is a query very similar to this on the groups but there is no response. So thought of raising it here.
https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/aem-cif-magento-on-publish/td-p/406870

Please let me know if I am missing something.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

2 replies

Adobe Employee
February 24, 2022

Hi @aryan12345 ,

 

Have you added the cif addon on publish if not add below addon

 

cif-cloud-ready-feature-pkg-2021.07.21-cq-commerce-addon-publishfar.far

 

Hope this helps!!

 

 

 

Aryan12345AuthorAccepted solution
Level 3
February 25, 2022
Level 3
April 4, 2022

@aryan12345 Can you please elaborate a bit more?  I cannot get this working using the solution mentioned there being adding a commerce variable with a reverse proxy.

Thanks

Yonit