Mautic Community Forums

when i submit the form.. it stops at "please wait" with the following error

I have a mautic form here in Joomla

http://staging.rapidfy.com/



Its somewhere in the middle… when i submit the form… it stops at “please wait” with the following error



GET http://dev.mautic.rapidfy.com/form/submit?formId=1 403 (Forbidden)

app.js?v2.0.1:210 Uncaught SecurityError: Blocked a frame with origin “http://dev.mautic.rapidfy.com” from accessing a frame with origin “http://staging.rapidfy.com”. Protocols, domains, and ports must match.



Curiously, it worked before. There was two things i remember i did before it broke,

  1. Install PHP CLI
  2. Install URL Rewriting

    $ sudo apt-get install libapache2-mod-proxy-html

    $ sudo a2enmod proxy_http

    $ sudo a2enmod rewrite



    Did a google search, and it seems something with JS not allowing me to use resources on another server? But it worked before… :(

I have a mautic form here in Joomla
http://staging.rapidfy.com/

Its somewhere in the middle… when i submit the form… it stops at “please wait” with the following error

GET http://dev.mautic.rapidfy.com/form/submit?formId=1 403 (Forbidden)
app.js?v2.0.1:210 Uncaught SecurityError: Blocked a frame with origin “http://dev.mautic.rapidfy.com” from accessing a frame with origin “http://staging.rapidfy.com”. Protocols, domains, and ports must match.

Curiously, it worked before. There was two things i remember i did before it broke,

  1. Install PHP CLI
  2. Install URL Rewriting
    $ sudo apt-get install libapache2-mod-proxy-html
    $ sudo a2enmod proxy_http
    $ sudo a2enmod rewrite

Did a google search, and it seems something with JS not allowing me to use resources on another server? But it worked before… :frowning:

Oh no… not from the pop up… the pop up is Acymailling.

Its this one.
http://screenpresso.com/=qIwMb

means your server takes the HTTP request as forbidden. It never finds a way to Mautic. Consult it with your server admin / hosting provider / Google or whoever you can consult in your case.

I am the admin… unfortunately. Why does mautic throw this error

app.js?v2.0.1:210 Uncaught SecurityError: Blocked a frame with origin “http://dev.mautic.rapidfy.com” from accessing a frame with origin “http://staging.rapidfy.com”. Protocols, domains, and ports must match.

I know… but the question is why? why does it say mautic want a resource not in its domain? Any ideas? perhaps you could go to the page and try it out and see what you make of it?

@chizuoka@gmail.com Mautic uses the iFrame with the postMessage as recommended in the linked stackoverflow link above. The HTTP header generated by your server can forbid to use other origins though.

Yes i am

Would you be able to advice where i could fix this problem? Im using apache on ubuntu

Depends on your server configuration. You can read more about it here: https://developer.mozilla.org/en-US/docs/Web/HTTP/Access_control_CORS

It should be this http header: access-control-allow-origin