Focus is not working.

Focus is not working for me.

I am using the version 2.6.1



This is the error messagem I get from from browser.



Please, How Can I solve it?


GET https://mymauticinstall.com/focus/1/viewpixel.gif 500 (Internal Server Error)
GET https://mymauticinstall.com/form/submit?formId=1 403 (Forbidden)
Uncaught DOMException: Blocked a frame with origin "https://mymauticinstall.com" from accessing a cross-origin frame.
at HTMLDocument. (https://mymauticinstall.com/media/js/app.js?vca1bef35:190:52)
at fire (https://mymauticinstall.com/media/js/libraries.js?vca1bef35:328:299)
at Object.fireWith [as resolveWith] (https://mymauticinstall.com/media/js/libraries.js?vca1bef35:333:198)
at Function.ready (https://mymauticinstall.com/media/js/libraries.js?vca1bef35:340:11)
at HTMLDocument.completed (https://mymauticinstall.com/media/js/libraries.js?vca1bef35:340:291)
(anonymous) @ app.js?vca1bef35:190
fire @ libraries.js?vca1bef35:328
fireWith @ libraries.js?vca1bef35:333
ready @ libraries.js?vca1bef35:340
completed @ libraries.js?vca1bef35:340

Focus is not working for me.
I am using the version 2.6.1

This is the error messagem I get from from browser.

Please, How Can I solve it?


GET https://mymauticinstall.com/focus/1/viewpixel.gif 500 (Internal Server Error)
GET https://mymauticinstall.com/form/submit?formId=1 403 (Forbidden)
Uncaught DOMException: Blocked a frame with origin “https://mymauticinstall.com” from accessing a cross-origin frame.
at HTMLDocument. (https://mymauticinstall.com/media/js/app.js?vca1bef35:190:52)
at fire (https://mymauticinstall.com/media/js/libraries.js?vca1bef35:328:299)
at Object.fireWith [as resolveWith] (https://mymauticinstall.com/media/js/libraries.js?vca1bef35:333:198)
at Function.ready (https://mymauticinstall.com/media/js/libraries.js?vca1bef35:340:11)
at HTMLDocument.completed (https://mymauticinstall.com/media/js/libraries.js?vca1bef35:340:291)
(anonymous) @ app.js?vca1bef35:190
fire @ libraries.js?vca1bef35:328
fireWith @ libraries.js?vca1bef35:333
ready @ libraries.js?vca1bef35:340
completed @ libraries.js?vca1bef35:340

Is https://mymauticinstall.com in your permitted CORS domains? Check Configuration -> System Settings -> CORS Settings

Yes it is! both http and https.

The protocol (http/https) has to match on both sites per the same-origin policy. It sounds like the website you’re embedding the focus item on is using mixed protocols, but your Mautic might be https-only.

The easy fix is to go https-only on both sites. There are a lot of reasons you should consider doing this irrespective of the error message.

[quote=20770:@JConnell]The protocol (http/https) has to match on both sites per the same-origin policy. It sounds like the website you’re embedding the focus item on is using mixed protocols, but your Mautic might be https-only.

The easy fix is to go https-only on both sites. There are a lot of reasons you should consider doing this irrespective of the error message.[/quote]

Thank you for your help.
I have testest it with sites running both https and the issue is still the same.
Have you seeing that this gif bellow is not working?

GET https://mymauticinstall.com/focus/1/viewpixel.gif 500 (Internal Server Error)

I am really lost with this.
Is your Focus module working very well?

+1 / see

https://github.com/mautic/mautic/issues/3909