# Forms do not work with https

**URL:** <https://forum.mautic.org/t/forms-do-not-work-with-https/10510>\
**Category:** Product Support\
**Created:** [May 16, 2018, 6:31pm UTC](https://forum.mautic.org/t/forms-do-not-work-with-https/10510 "2018-05-16T18:31:03Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![skillit](https://avatars.discourse-cdn.com/v4/letter/s/e99b99/32.png) [@skillit](https://forum.mautic.org/u/skillit)\
**Post date:** [May 16, 2018, 6:31pm UTC](https://forum.mautic.org/t/forms-do-not-work-with-https/10510/1 "2018-05-16T18:31:03Z")

</div>

I am using Mautic with Wordpress. The forms do not render on my site due to a mixed content warning:

Mixed Content: The page at ‘[https://skillit-dev.example.com/instructor-signup/](https://skillit-dev.example.com/instructor-signup/)’ was loaded over HTTPS, but requested an insecure script ‘[http://mautic.example.com/mtc.js](http://mautic.example.com/mtc.js)’. This request has been blocked; the content must be served over HTTPS.

I’ve tried with both the WP Mautic plugin and the automatically created script. Both fail because the mtc.js request is hard coded. How do I fix this?

---

<div class="post-metadata">

**Author:** ![bulgin](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/bulgin/32/1001_2.png) [@bulgin](https://forum.mautic.org/u/bulgin)\
**Post date:** [May 16, 2018, 6:46pm UTC](https://forum.mautic.org/t/forms-do-not-work-with-https/10510/2 "2018-05-16T18:46:45Z")

</div>

I think you need to make your mautic site ssl secure. Check out LetsEncrypt it’s free and easy to install using instructions here if you are on a cpanel/WHM setup or otherwise:

[https://thedavidweb.com/install-lets-encrypt-free-ssl-hostgator/](https://thedavidweb.com/install-lets-encrypt-free-ssl-hostgator/)

---

<div class="post-metadata">

**Author:** ![skillit](https://avatars.discourse-cdn.com/v4/letter/s/e99b99/32.png) [@skillit](https://forum.mautic.org/u/skillit)\
**Post date:** [May 16, 2018, 11:28pm UTC](https://forum.mautic.org/t/forms-do-not-work-with-https/10510/3 "2018-05-16T23:28:05Z")

</div>

Thx. But my site and subdomain ARE secured by letsencrypt. Both work fine as follows:

[https://example.com](https://example.com)  
[https://mautic.example.com](https://mautic.example.com)

The issue is some script in Mautic is asking for [http://mautic.example.com/mtc.js](http://mautic.example.com/mtc.js) and this gives me the “mixed content” error.

---

<div class="post-metadata">

**Author:** ![skillit](https://avatars.discourse-cdn.com/v4/letter/s/e99b99/32.png) [@skillit](https://forum.mautic.org/u/skillit)\
**Post date:** [May 16, 2018, 11:48pm UTC](https://forum.mautic.org/t/forms-do-not-work-with-https/10510/4 "2018-05-16T23:48:40Z")

</div>

Ok I found the problem. In my WP plugin I specified the Mautic install URL incorrectly with http.

---

<div class="post-metadata">

**Author:** ![skillit](https://avatars.discourse-cdn.com/v4/letter/s/e99b99/32.png) [@skillit](https://forum.mautic.org/u/skillit)\
**Post date:** [May 18, 2018, 6:23pm UTC](https://forum.mautic.org/t/forms-do-not-work-with-https/10510/5 "2018-05-18T18:23:25Z")

</div>

The form displays but the submit doesn’t work. I am getting this error message:

> The page at 'https://skillit-dev.goofy-foot.com/instructor-signup/' was loaded over HTTPS, but requested an insecure form action 'http://mautic.goofy-foot.com/form/submit?formId=1'. This request has been blocked; the content must be served over HTTPS.

The URL uses https in the WP Mautic plugin and I’ve specified https in the

`Configuration -> System Settings`

---

<div class="post-metadata">

**Author:** ![skillit](https://avatars.discourse-cdn.com/v4/letter/s/e99b99/32.png) [@skillit](https://forum.mautic.org/u/skillit)\
**Post date:** [May 19, 2018, 5:25am UTC](https://forum.mautic.org/t/forms-do-not-work-with-https/10510/6 "2018-05-19T05:25:55Z")

</div>

Thanks @mxyzptlkfishstix. I didn’t know about the rebuild forms! Problem solved.

---

<div class="post-metadata">

**Author:** ![michaelpost2318](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/michaelpost2318/32/1131_2.png) [@michaelpost2318](https://forum.mautic.org/u/michaelpost2318)\
**Post date:** [March 16, 2021, 4:39pm UTC](https://forum.mautic.org/t/forms-do-not-work-with-https/10510/7 "2021-03-16T16:39:43Z")

</div>

Hello together,

i have the same issue. But I do not have any Wordpress in my situation. It’s a normal HTML-Page. All links are HTTP and under Configuration → System Settings → Site-URL is also https.

I use the version Mautic 3.3.1 and PHP 7.3.

Do you have any hint for me?

---

<div class="post-metadata">

**Author:** ![arasa](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/arasa/32/13144_2.png) [@arasa](https://forum.mautic.org/u/arasa)\
**Post date:** [November 15, 2024, 8:14am UTC](https://forum.mautic.org/t/forms-do-not-work-with-https/10510/8 "2024-11-15T08:14:12Z")

</div>

Hello everyone, I am reactivating the thread because I find myself in the same situation. I have a mautic installed under docker behind a treafik reverse proxy. Mautic is indeed in https but all the links generated by mautic are in http (asset, action in forms, etc.). I have not found anything in the forum or in the documentation on an environment variable for the docker yml or a system setting to solve the problem. So I am reactivating the discussion in the hope of having help. Thank you in advance.

---

<div class="post-metadata">

**Author:** ![arasa](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/arasa/32/13144_2.png) [@arasa](https://forum.mautic.org/u/arasa)\
**Post date:** [November 15, 2024, 12:00pm UTC](https://forum.mautic.org/t/forms-do-not-work-with-https/10510/9 "2024-11-15T12:00:25Z")

</div>

I answer myself, you just have to enter the trusted proxies in the various settings block in system settings. In my case it is 127.0.0.1,172.21.0.7
