I’m fighting with Mautic integration with my website. I use NGINX webserver, mautic is installed on subdomain https://ma.website.com. Mautic works okay, but mautic integration script on the main website cannot be run due to CORS errors:
Code:
Failed to load https://ma.website.com/index.php/mtc/event: The value of the 'Access-Control-Allow-Credentials' header in the response is 'true, true' which must be 'true' when the request's credentials mode is 'include'. Origin 'https://www.website.com' is therefore not allowed access. The credentials mode of requests initiated by the XMLHttpRequest is controlled by the withCredentials attribute.
I’m fighting with Mautic integration with my website. I use NGINX webserver, mautic is installed on subdomain https://ma.website.com. Mautic works okay, but mautic integration script on the main website cannot be run due to CORS errors:
Failed to load https://ma.website.com/index.php/mtc/event: The value of the 'Access-Control-Allow-Credentials' header in the response is 'true, true' which must be 'true' when the request's credentials mode is 'include'. Origin 'https://www.website.com' is therefore not allowed access. The credentials mode of requests initiated by the XMLHttpRequest is controlled by the withCredentials attribute.
Thanks fususu, I tried this already and getting the following message:
Response to preflight request doesn't pass access control check: The value of the 'Access-Control-Allow-Origin' header in the response must not be the wildcard '*' when the request's credentials mode is 'include'. Origin 'https://www.website.com' is therefore not allowed access. The credentials mode of requests initiated by the XMLHttpRequest is controlled by the withCredentials attribute.