# "Please wait" after submitting form

**URL:** <https://forum.mautic.org/t/please-wait-after-submitting-form/21979>\
**Category:** Product Support\
**Tags:** mautic-4\
**Created:** [December 11, 2021, 8:13am UTC](https://forum.mautic.org/t/please-wait-after-submitting-form/21979 "2021-12-11T08:13:50Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![zacktkp](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/zacktkp/32/587_2.png) [@zacktkp](https://forum.mautic.org/u/zacktkp)\
**Post date:** [December 11, 2021, 8:13am UTC](https://forum.mautic.org/t/please-wait-after-submitting-form/21979/1 "2021-12-11T08:13:50Z")

</div>

**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](https://agency.theblackdelta.com/mtc/event)’ from origin ‘[https://theblackdelta.com](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](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

---

<div class="post-metadata">

**Author:** ![patrickeidemiller](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/patrickeidemiller/32/511_2.png) [@patrickeidemiller](https://forum.mautic.org/u/patrickeidemiller)\
**Post date:** [December 11, 2021, 8:04pm UTC](https://forum.mautic.org/t/please-wait-after-submitting-form/21979/2 "2021-12-11T20:04:52Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![zacktkp](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/zacktkp/32/587_2.png) [@zacktkp](https://forum.mautic.org/u/zacktkp)\
**Post date:** [December 11, 2021, 8:07pm UTC](https://forum.mautic.org/t/please-wait-after-submitting-form/21979/3 "2021-12-11T20:07:34Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![patrickeidemiller](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/patrickeidemiller/32/511_2.png) [@patrickeidemiller](https://forum.mautic.org/u/patrickeidemiller)\
**Post date:** [December 11, 2021, 8:10pm UTC](https://forum.mautic.org/t/please-wait-after-submitting-form/21979/4 "2021-12-11T20:10:23Z")

</div>

![image](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/f/fc6d4a068a5cade0c82f173bf0c2399c64c2e18c.png)

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

---

<div class="post-metadata">

**Author:** ![zacktkp](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/zacktkp/32/587_2.png) [@zacktkp](https://forum.mautic.org/u/zacktkp)\
**Post date:** [December 11, 2021, 8:10pm UTC](https://forum.mautic.org/t/please-wait-after-submitting-form/21979/5 "2021-12-11T20:10:56Z")

</div>

Header always unset X-Frame-Options

it worked after I added the above code!!! 😃 thanks
