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

Error occurred when adding AEM Form component into editable template structure, how to solve?

Avatar

Level 3

Hello experts,

 

I faced some errors after adding the AEM Form component into Site Page editable template structure:

fulongt37334138_0-1685362394621.png

Anyone knows how to solve it? Thanks very much.

2 Replies

Avatar

Employee Advisor

@fulongt37334138 

As per the error msg in the console logs, CORS policy is blocking the request, so you may have to update the relevant fields like Allowed hosts, headers, methods, etc, of the CORS config[0].

Cross-Origin Resource Sharing facilitates non-AEM web properties to make client-side calls to AEM, both authenticated and unauthenticated, to fetch content or directly interact with AEM.

[0] - https://experienceleague.adobe.com/docs/experience-manager-learn/foundation/security/understand-cros...

Avatar

Level 3

Thanks for your reply, but I am not troubled with the CORS problem, I want to know the "fd is not defined" problem.