success / thank-you page redirection issue in cross domain.
Consider We have a Form Page: https://www.abc.com/in/en/home/form.html which is loaded using iframe into Domain Page: https://www.xyz.com/sg/en/home/test.html.
Domain: www.abc.com, https://www.xyz.com both are of using separate AEM environment.
Issue:
When we submit the form on this Page: https://www.abc.com/in/en/home/form.html and validated the google recaptcha, it successfully redirects to the thank-you page. But when we try to submit the above form Page which is loaded in iframe in Domain: https://www.xyz.com/sg/en/home/test.html after validating the google recaptcha successfully it is not redirecting to the thank you page and also thank-you page not loads in the iframe on the Page: https://www.xyz.com/sg/en/home/test.html.
Other Information:
For Page: https://www.abc.com/in/en/home/form.html we do have a redirection logic in the servlet to redirect to the thank-you page after successful google recaptcha validation. We are getting the logger statements as well for servlet in this scenario. But when the same form Page is referenced using iframe and form is submitted in the Page: https://www.xyz.com/sg/en/home/test.html the servlet is not getting triggered and thank-you page redirection is also not happening. We do have the same redirection logic in forward.jsp as well but this also not works on the Page : https://www.xyz.com/sg/en/home/test.html.
Can you please suggest the solution to fix the issue?