# CORS policy problem

**URL:** <https://forum.mautic.org/t/cors-policy-problem/14291>\
**Category:** Product Support\
**Created:** [May 12, 2020, 4:26am UTC](https://forum.mautic.org/t/cors-policy-problem/14291 "2020-05-12T04:26:53Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![dan](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/dan/32/627_2.png) [@dan](https://forum.mautic.org/u/dan)\
**Post date:** [May 12, 2020, 4:26am UTC](https://forum.mautic.org/t/cors-policy-problem/14291/1 "2020-05-12T04:26:53Z")

</div>

**Your software**  
My Mautic version is: 2.16.2  
My PHP version is: 7.3.11

**Your problem**  
My problem is:  
Hi, I installed the tracking code of the Mautik in the online store and saw a problem. Everything works well on the main page, and on other pages as well, except for the product page. I see an error in the console

 ![Снимок экрана 2020-05-12 в 10.18.58](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/2/2f2602d469f565599dc6d7a7aeeb1943c4ea23e9.png)  
You can check it here [https://www.hibox.mn/?p=item&id=585457894816#3965056265883](https://www.hibox.mn/?p=item&id=585457894816#3965056265883)

Also this page have another problem “Uncaught TypeError: Cannot read property ‘type’ of undefined”

 ![Снимок экрана 2020-05-12 в 10.25.51](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/2/250a57f4a757807e92eccf694e87b017c416586a.png)

My CORS Settings

 ![Снимок экрана 2020-05-12 в 10.23.44](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/a/a12a915bd0f5734c07f454458013c039f5de3d30.png)

These errors are showing in the log:  
Empty

How I can fix it? Pls help

---

<div class="post-metadata">

**Author:** ![ekke](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/ekke/32/296_2.png) [@ekke](https://forum.mautic.org/u/ekke)\
**Post date:** [May 12, 2020, 7:44am UTC](https://forum.mautic.org/t/cors-policy-problem/14291/2 "2020-05-12T07:44:04Z")

</div>

Hi Dan,  
I’d say you need to allow **www**.hibox.mn (as well as hibox.mn) in your CORS.  
Cheers  
Ekke

* * *

_Subscribe to the **Mautic Podcast** at [www.Mauticast.com](http://www.Mauticast.com) - and let me know what topics or interviews you would like to hear!_  
_(German version at [www.Mauticast.de](http://www.Mauticast.de))_

---

<div class="post-metadata">

**Author:** ![dan](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/dan/32/627_2.png) [@dan](https://forum.mautic.org/u/dan)\
**Post date:** [May 12, 2020, 8:03am UTC](https://forum.mautic.org/t/cors-policy-problem/14291/3 "2020-05-12T08:03:44Z")

</div>

Thanks, this solved my problem with CORS, but there was one problem in the product page. I don’t know how to fix it

 ![Снимок экрана 2020-05-12 в 14.02.45](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/0/0bdcffd19005cb612c45f530129aee7776dd96d0.jpeg)  
 ![Снимок экрана 2020-05-12 в 14.03.01](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/d/debdb11715db6a726c176dfc8833194c6297fc6b.png)

---

<div class="post-metadata">

**Author:** ![ekke](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/ekke/32/296_2.png) [@ekke](https://forum.mautic.org/u/ekke)\
**Post date:** [May 12, 2020, 1:48pm UTC](https://forum.mautic.org/t/cors-policy-problem/14291/4 "2020-05-12T13:48:50Z")

</div>

Looks like [https://github.com/mautic/mautic/pull/7365](https://github.com/mautic/mautic/pull/7365) to me… Maybe you want try this out and give feedback in the PR 🙂
