Page loads indefinitely after submission of the form. (Script5 / DOMException)

Issue:

Page loads indefinitely after submission of the form.

Errors found in console:
IE: Script5: Access is denied.
Chrome: Uncaught DOMException: Blocked a frame with origin “xxx” from accessing a cross-origin frame

Resolution:

Make sure that you are accessing the same site mentioned in the Application URL Configuration. (Configuration Panel -> General -> Application URL). We use this configuration to generate forms/pages.

For example:
If you are accessing the website with an http connection and the Application URL Configuration uses an https connection, this error will occur because of the same-origin policy occurring when the frames try to load their content.