# Focus is not working.

**URL:** <https://forum.mautic.org/t/focus-is-not-working/7736>\
**Category:** Product Support\
**Created:** [March 1, 2017, 8:18pm UTC](https://forum.mautic.org/t/focus-is-not-working/7736 "2017-03-01T20:18:27Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alcides](https://avatars.discourse-cdn.com/v4/letter/a/b2d939/32.png) [@Alcides](https://forum.mautic.org/u/Alcides)\
**Post date:** [March 1, 2017, 8:18pm UTC](https://forum.mautic.org/t/focus-is-not-working/7736/1 "2017-03-01T20:18:27Z")

</div>

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
* * *

---

<div class="post-metadata">

**Author:** ![Alcides](https://avatars.discourse-cdn.com/v4/letter/a/b2d939/32.png) [@Alcides](https://forum.mautic.org/u/Alcides)\
**Post date:** [March 1, 2017, 8:18pm UTC](https://forum.mautic.org/t/focus-is-not-working/7736/2 "2017-03-01T20:18:27Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![JConnell](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/jconnell/32/159_2.png) [@JConnell](https://forum.mautic.org/u/JConnell)\
**Post date:** [March 1, 2017, 8:28pm UTC](https://forum.mautic.org/t/focus-is-not-working/7736/3 "2017-03-01T20:28:52Z")

</div>

Is [https://mymauticinstall.com](https://mymauticinstall.com) in your permitted CORS domains? Check Configuration -\> System Settings -\> CORS Settings

---

<div class="post-metadata">

**Author:** ![Alcides](https://avatars.discourse-cdn.com/v4/letter/a/b2d939/32.png) [@Alcides](https://forum.mautic.org/u/Alcides)\
**Post date:** [March 1, 2017, 8:33pm UTC](https://forum.mautic.org/t/focus-is-not-working/7736/4 "2017-03-01T20:33:35Z")

</div>

Yes it is! both http and https.

---

<div class="post-metadata">

**Author:** ![JConnell](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/jconnell/32/159_2.png) [@JConnell](https://forum.mautic.org/u/JConnell)\
**Post date:** [March 1, 2017, 9:04pm UTC](https://forum.mautic.org/t/focus-is-not-working/7736/5 "2017-03-01T21:04:23Z")

</div>

The protocol (http/https) has to match on both sites per the [same-origin policy](https://en.wikipedia.org/wiki/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.

---

<div class="post-metadata">

**Author:** ![Alcides](https://avatars.discourse-cdn.com/v4/letter/a/b2d939/32.png) [@Alcides](https://forum.mautic.org/u/Alcides)\
**Post date:** [March 2, 2017, 1:02am UTC](https://forum.mautic.org/t/focus-is-not-working/7736/6 "2017-03-02T01:02:51Z")

</div>

[quote=20770:@JConnell]The protocol (http/https) has to match on both sites per the [same-origin policy](https://en.wikipedia.org/wiki/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](https://mymauticinstall.com/focus/1/viewpixel.gif) 500 (Internal Server Error)

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

---

<div class="post-metadata">

**Author:** ![wucherpfennig](https://avatars.discourse-cdn.com/v4/letter/w/db5fbb/32.png) [@wucherpfennig](https://forum.mautic.org/u/wucherpfennig)\
**Post date:** [April 25, 2017, 1:49pm UTC](https://forum.mautic.org/t/focus-is-not-working/7736/7 "2017-04-25T13:49:40Z")

</div>

+1 / see

[https://github.com/mautic/mautic/issues/3909](https://github.com/mautic/mautic/issues/3909)
