Mixed Content over HTTP on a HTTPS page

I have my HTTPS setup working correctly.



Some how this script.



https://github.com/mautic/mautic/blob/0f9e8a7221f3e107ba6845a6fca58bcd257e6fd0/app/bundles/FormBundle/Views/Builder/script.html.php



Is inserting an http script instead of an https one.

Code:
/** This section is only needed once per page if manually copying **/ if (typeof MauticSDKLoaded == 'undefined') { var MauticSDKLoaded = true; var head = document.getElementsByTagName('head')[0]; var script = document.createElement('script'); script.type = 'text/javascript'; script.src = 'http://social.codewithintent.com/media/js/mautic-form.js'; script.onload = function() { MauticSDK.onLoad(); }; head.appendChild(script); var MauticDomain = 'http://social.codewithintent.com'; var MauticLang = { 'submittingMessage': "Please wait..." } }

This is the page https://social.codewithintent.com/s/forms/preview/1

I have my HTTPS setup working correctly.

Some how this script.

https://github.com/mautic/mautic/blob/0f9e8a7221f3e107ba6845a6fca58bcd257e6fd0/app/bundles/FormBundle/Views/Builder/script.html.php

Is inserting an http script instead of an https one.

 /** This section is only needed once per page if manually copying **/
    if (typeof MauticSDKLoaded == 'undefined') {
        var MauticSDKLoaded = true;
        var head            = document.getElementsByTagName('head')[0];
        var script          = document.createElement('script');
        script.type         = 'text/javascript';
        script.src          = 'http://social.codewithintent.com/media/js/mautic-form.js';
        script.onload       = function() {
            MauticSDK.onLoad();
        };
        head.appendChild(script);
        var MauticDomain = 'http://social.codewithintent.com';
        var MauticLang   = {
            'submittingMessage': "Please wait..."
        }
    }

This is the page https://social.codewithintent.com/s/forms/preview/1

I did not have apache configured correctly.

It had no SSL certificate installed!

I added a new certificate and problem solved.

https://www.youtube.com/watch?v=cphlm3KAPMc