# Https problem

**URL:** <https://forum.mautic.org/t/https-problem/8525>\
**Category:** Product Support\
**Created:** [May 17, 2017, 4:08pm UTC](https://forum.mautic.org/t/https-problem/8525 "2017-05-17T16:08:36Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hasse](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/hasse/32/187_2.png) [@Hasse](https://forum.mautic.org/u/Hasse)\
**Post date:** [May 17, 2017, 4:08pm UTC](https://forum.mautic.org/t/https-problem/8525/1 "2017-05-17T16:08:36Z")

</div>

(Mautic v. 2.8.1)  
  
I’m using Channels -\> Focus items, to insert a form on a site.  
  
But when the form is submitted on the remote site the submit button keeps displaying “Please Wait”  
  
The problem is that the form action is set to:  
  
action="[//mysite.ex](https://mysite.ex)"  
  
If I manually change the action to:  
  
action=“[https://mysite.ex](https://mysite.ex)”  
  
the form works.  
  
  
  
My mautic site uses SSL / https  
  
And Configuration -\> System Settings -\> Site URL, is set with [https://xxx.xxx.xx](https://xxx.xxx.xx)  
  
  
  
Am I missing something?  
  
I try to find the code that generates the url for the form action, but no luck so far.  
  
  
  
Any advice on the problem or where I may find the form code would highly appreciated ![:)]( ":)")  
  
  
  
Kind regards  
  
Hasse

---

<div class="post-metadata">

**Author:** ![Hasse](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/hasse/32/187_2.png) [@Hasse](https://forum.mautic.org/u/Hasse)\
**Post date:** [May 17, 2017, 4:08pm UTC](https://forum.mautic.org/t/https-problem/8525/2 "2017-05-17T16:08:36Z")

</div>

(Mautic v. 2.8.1)  
I’m using Channels -\> Focus items, to insert a form on a site.  
But when the form is submitted on the remote site the submit button keeps displaying “Please Wait”  
The problem is that the form action is set to:  
action="[//mysite.ex](https://mysite.ex)"  
If I manually change the action to:  
action=“[https://mysite.ex](https://mysite.ex)”  
the form works.

My mautic site uses SSL / https  
And Configuration -\> System Settings -\> Site URL, is set with [https://xxx.xxx.xx](https://xxx.xxx.xx)

Am I missing something?  
I try to find the code that generates the url for the form action, but no luck so far.

Any advice on the problem or where I may find the form code would highly appreciated 🙂

Kind regards  
Hasse

---

<div class="post-metadata">

**Author:** ![ninjoan](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/ninjoan/32/1005_2.png) [@ninjoan](https://forum.mautic.org/u/ninjoan)\
**Post date:** [May 17, 2017, 8:03pm UTC](https://forum.mautic.org/t/https-problem/8525/3 "2017-05-17T20:03:31Z")

</div>

[//your-domain.com](https://your-domain.com) is coming by default this is used in case your website use HTTPS or HTTP the form will look for both options.

If you enable HTTPS after install Mautic go to forms select all form and use rebuild forms.

---

<div class="post-metadata">

**Author:** ![Hasse](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/hasse/32/187_2.png) [@Hasse](https://forum.mautic.org/u/Hasse)\
**Post date:** [May 18, 2017, 7:48am UTC](https://forum.mautic.org/t/https-problem/8525/4 "2017-05-18T07:48:17Z")

</div>

Hi ninjoan, and thank you for your answer.  
Both rebuild forms and clear cache did not solve the problem.

A few words about my setup

My-Mautic-server:  
The domain and server Mautic is hosted on. All access to the domain is redirected to https. (ex. [https://my-mautic.com](https://my-mautic.com)).  
Apache:

` RewriteEngine On
        RewriteCond %{HTTPS} off
        RewriteRule ^(.*)$ https://%{HTTP_HOST}$1 [R=301,L]`

My-Content-server:  
The domain of my webpage. All access to the domain is by http. (ex. [http://holiday-is-great.com](http://holiday-is-great.com))

The problem

When the Mautic javascript is included on My-Content-server, the generated form is set to use http.  
The form is not submitted and Chrome complains:

```auto
my-mautic.com/form/submit?formId=3:1 GET https://my-mautic.com/form/submit?formId=3 403 (Forbidden)
```

`app.js?v9204458e:216 Uncaught DOMException: Blocked a frame with origin "https://my-mautic.com" from accessing a cross-origin frame.
    at HTMLDocument.<anonymous> (https://my-mautic.com/media/js/app.js?v9204458e:216:67)
    at fire (https://my-mautic.com/media/js/libraries.js?v9204458e:328:299)
    at Object.fireWith [as resolveWith] (https://my-mautic.com/media/js/libraries.js?v9204458e:333:198)
    at Function.ready (https://my-mautic.com/media/js/libraries.js?v9204458e:340:11)
    at HTMLDocument.completed (https://my-mautic.com/media/js/libraries.js?v9204458e:340:291)
(anonymous) @ app.js?v9204458e:216
fire @ libraries.js?v9204458e:328
fireWith @ libraries.js?v9204458e:333
ready @ libraries.js?v9204458e:340
completed @ libraries.js?v9204458e:340`  
  
My proposed solution  
Find the form generating function in the source and make an option to force Mautic to use https:// and not //

Would it make sense to do that or is there another way? 🙂

---

<div class="post-metadata">

**Author:** ![sonikbotnik](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/sonikbotnik/32/756_2.png) [@sonikbotnik](https://forum.mautic.org/u/sonikbotnik)\
**Post date:** [September 11, 2020, 5:19pm UTC](https://forum.mautic.org/t/https-problem/8525/5 "2020-09-11T17:19:17Z")

</div>

Hi Hasse,

I know this is 3 years later but I’m running into the same issue. What did you end up doing?

---

<div class="post-metadata">

**Author:** ![rotorfido](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/rotorfido/32/580_2.png) [@rotorfido](https://forum.mautic.org/u/rotorfido)\
**Post date:** [October 7, 2020, 2:05am UTC](https://forum.mautic.org/t/https-problem/8525/6 "2020-10-07T02:05:40Z")

</div>

same here, any updates? I hate these bugs!!!

---

<div class="post-metadata">

**Author:** ![joeyk](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/joeyk/32/11164_2.png) [@joeyk](https://forum.mautic.org/u/joeyk)\
**Post date:** [October 7, 2020, 8:17am UTC](https://forum.mautic.org/t/https-problem/8525/7 "2020-10-07T08:17:26Z")

</div>

Hi, I don’t know about such bug. All works good by me.  
Try to fix your https first, google gave me this great article:

> **[Secure Mautic Installation on a VPS in 2020 | Mauteam.org](https://mauteam.org/mautic/mautic-admins/securing-your-mautic-installation/)**
>
> This is a basic but production-ready Mautic installation tutorial, that you can run in a SMALL production environment.
