"Please wait" after submitting form

Your software
My Mautic version is: 4:0:2
My PHP version is: 7.4.26
My Database type and version is: 10.3.29-MariaDB-cll-lve

Your problem
My problem is:

  • Both sites involved are individual domain
  • when I try to submit a form embedded in a wordpress webpage created with Elementor, it will say “please wait” and hang there.

These errors are showing in the log:

  • No error message in log with respect to this error
  • Error message from Browser developer’s tool:
    Access to XMLHttpRequest at ‘https://agency.theblackdelta.com/mtc/event’ from origin ‘https://theblackdelta.com’ has been blocked by CORS policy: Response to preflight request doesn’t pass access control check: No ‘Access-Control-Allow-Origin’ header is present on the requested resource.
    mtc.js:9 POST https://agency.theblackdelta.com/mtc/event net::ERR_FAILED
    MauticJS.makeCORSRequest @ mtc.js:9
    m.deliverPageEvent @ mtc.js:86
    m.sendPageview @ mtc.js:92
    (anonymous) @ mtc.js:93
    (anonymous) @ mtc.js:93

Steps I have tried to fix the problem:

  • CORS setting tried with both “restrict domain” enabled and disabled.

Hi Fellow Mautic user, trying for days to hunt for workable solution for the above issue.
Appreciate any pointers.
Thanks in advance

Have you added the below to the bottom of your .htaccess file in your /mautic root folder?

Header always unset X-Frame-Options

You’ll need to add it back after every upgrade as .htacess gets overwritten as part of the upgrade.

hi thanks for the reply…

I am quite new to Mautic, and this is a fresh installation… May I know what do I have to add to the .htaccess file?

Add the last line to the bottom of your .htaccess file

Header always unset X-Frame-Options

it worked after I added the above code!!! :smiley: thanks

1 Like