Error cors

I installed mautic v4.4.9, php 7.4.30, phpMyAdmin 5.2.0, sqlon a local host in xampp 2.4 VC15, 10.4.25-MariaDB, it has access to the internet but does not have access with a public IP, the server IP is local, internet, I placed the tracking code and the Js form in a statistics page that I uploaded to github, on localhost I am using a registered subdomain pointed to Cloud Flare, I use SSL let’s encrypt generated via DNS by the cloudflare app with certbot as it does not have a public IP, the domain is listening on port 8443 https://info .betterqualityoflife.shop:8443/, Mautic runs the campaigns but is not registering IPs outside the internet and the form is not being blocked by the browser via Cors policy, I have already added a header to .htacsses and disabled Mautic’s Cors and it does not work, I want to know if the way I use it on localhost, it is possible to point the mautic forms to sites like github and how to Enable the correct Cors as I have already added the headers and nothing, the blocking continues.

Is it possible to use Mautic intranet to carry out automation campaigns for external websites, adding a campaign form, even without a public IP but with internet access?

header that I tried to use in mautic’s .htaccess and it didn’t work:
Access-Control-Allow-Origin header set “https://your_site.com”
Access-Control-Allow-Methods header set “GET, POST, OPTIONS”
Header set Access-Control-Allow-Headers “Origin, X-Requested-With, Content-Type, Accept”

the error: Access to XMLHttpRequest at ‘https://info.betterqualityoflife.shop:8443/mtc/event’ from origin ‘https://iminente.github.io’ was blocked by CORS policy: response to preflight request doesn’t pass the access control check: The value of the ‘Access-Control-Allow-Credentials’ header in the response is ‘’ which must be ‘true’ when the credentials mode of the request is ‘include’. The credentials mode of requests initiated by XMLHttpRequest is controlled by the withCredentials attribute.
The mautic form does not load on this page.

Note: intranet works with form campaigns, sending emails to customers with Outlook, Gmail…

I doubt that it’s the answer that you were looking for but there it goes…

Yes - but it would require an advance knowledge on networking and server configuration.

Unfortunately a single post wouldn’t suffice to cover all the moving parts required to configure your infrastructure and app servers.

Still, yes, totally doable (this is what we are doing so we could keep our clientele safe from (D)DoS)