Core Form Container - Post Form Data - Submit - Not working in AEM as a cloud
Hi Team,
In AEM as a Cloud (ver 2022.9.8722.20220912T101352Z-220800), we are using the Core Form Container to build a Simple form which contains Form Text, Form Options and a Form Button. On clicking the Submit button, I am getting the below Forbidden error and from my custom log configuration, I could see that my servlet is not getting called and can't able to see any errors related to this in error.log file as well. Since, it is a OOTB core component, not sure on what we are missing here. Could you please help us on how to get these form data to our backend? Thanks.
Dialog:

Form:

MyServlet:
@8220494(service = Servlet.class, property = { "sling.servlet.methods=" + HttpConstants.METHOD_POST,
"sling.servlet.paths=/bin/myproject/formpoc", "sling.servlet.selectors=formHandler",
"sling.servlet.extensions=html" })
public class GetFormDataPoc extends SlingAllMethodsServlet {
private static final Logger log = LoggerFactory.getLogger(GetFormDataPoc.class);
@9944223
protected void doPost(SlingHttpServletRequest request, SlingHttpServletResponse response)
throws ServletException, IOException {
log.debug("@@@ Inside doPost of GetFormDataPoc");
}
}
On Submit the form:


