Expand my Community achievements bar.

Enhance your AEM Assets & Boost Your Development: [AEM Gems | June 19, 2024] Improving the Developer Experience with New APIs and Events
SOLVED

AEMaacs Graphql Preflight Test

Avatar

Level 5

Hey All,

 

So working through all these CORS issues. I was able to fix all the issues on my local box but when I get to dev (cloud), I am getting a 204 on my preflight. Then after that, I get a 404

 

1) (preflight call) endpoint.json?operationName=getFooter&variables=%7B%7D&query=query%20getFooter%20%7B%0A%20%20footerList%20%7B%0A%20%20%20%20items%20%7B%0A%20%20%20%20%20%20footerCompanyName%0A%20%20%20%20%2 ..... This gets a 204 response

2) endpoint.json?operationName=getFooter&variables=%7B%7D&query=query%20getFooter%20%7B%0A%20%20footerList%20%7B%0A%20%20%20%20items%20%7B%0A%20%20%20%20%20%20footerCompanyName%0A%20%20%20%20%2 ..... 404

 

Any suggesstions. We are trying to use AEM totally headless with Graphql

 

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hi @Sean-McK ,

 

Assuming because preflight called got 204 response the second call failed and got 404. Could you please see below thread once. Just to check the CORS issue which you fixed on local I assume you have all set on Dev ie, 'Apache Sling Referrer Filter, Adobe Granite CSRF Filter'.

https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/aem-postback-gives-http-20...

View solution in original post

1 Reply

Avatar

Correct answer by
Community Advisor

Hi @Sean-McK ,

 

Assuming because preflight called got 204 response the second call failed and got 404. Could you please see below thread once. Just to check the CORS issue which you fixed on local I assume you have all set on Dev ie, 'Apache Sling Referrer Filter, Adobe Granite CSRF Filter'.

https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/aem-postback-gives-http-20...