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