Expand my Community achievements bar.

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


Level 3

Hello experts,


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


Anyone knows how to solve it? Thanks very much.

2 Replies


Employee Advisor


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...


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.