Error occurred when adding AEM Form component into editable template structure, how to solve? | Community
Skip to main content
fulongt37334138
Level 2
May 29, 2023

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

  • May 29, 2023
  • 1 reply
  • 780 views

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.

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

1 reply

Pulkit_Jain_
Adobe Employee
Adobe Employee
May 30, 2023

@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-cross-origin-resource-sharing.html?lang=en

fulongt37334138
Level 2
June 7, 2023

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