My PHP version is : 7.2.32
My MySQL/MariaDB version is (delete as applicable): MySQL 8
My Webserver is: NGinx
I am (delete as applicable): Installing
Upgrading/installing via (delete as applicable) : Web
These errors are showing in the installer :
These errors are showing in the Mautic log :
These errors are showing in the upgrade_log.txt file (located in the root of your Mautic instance when an upgrade has been attempted - ensure you remove or redact any sensitive data such as domain names in the file path) :
My problem is :
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://<MY MAUTIC SERVER>/mtc/event. (Reason: Multiple CORS header ‘Access-Control-Allow-Origin’ not allowed).
In my NGinx config I have the following:
add_header 'Access-Control-Allow-Headers' 'Authorization,Content-Type,Accept,Origin,User-Agent,DNT,Cache-Control,X-Mx-ReqToken,Keep-Alive,X-Requested-With,If-Modified-Since'; add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS'; add_header 'Access-Control-Allow-Origin' $http_origin; add_header 'Access-Control-Allow-Credentials' "true";
In Mautic, I’ve got “Restrict Domains” set to YES, and I’ve listed all of the calling domains in “Valid Domains” text field, however no matter what I change the NGINX headers or Mautic Settings to, I get the same errors.
The only thing I’ve not done is change the tracking code after each change to the server - does Mautic recreate the tracking code based on the value of “Restricted Domains”?