# How do I fix CSP errors (when doing Hotjar integration)?

**URL:** <https://community.appfarm.io/t/how-do-i-fix-csp-errors-when-doing-hotjar-integration/61>\
**Category:** Ask the community\
**Tags:** script, hotjar\
**Created:** [December 2, 2022, 1:32pm UTC](https://community.appfarm.io/t/how-do-i-fix-csp-errors-when-doing-hotjar-integration/61 "2022-12-02T13:32:22Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/flex013/user_avatar/community.appfarm.io/system/32/1992_2.png) [@system](https://community.appfarm.io/u/system)\
**Post date:** [December 2, 2022, 1:32pm UTC](https://community.appfarm.io/t/how-do-i-fix-csp-errors-when-doing-hotjar-integration/61/1 "2022-12-02T13:32:22Z")

</div>

I’m getting CSP errors, is it fixable by dealing with custom metatags?

The log says "Refused to connect to ‘https:in.hotjar.com/api/…’ because it violates the following Content Security Policy directyve: “connect-src ‘self’ blow: wss: https://…”.

---

<div class="post-metadata">

**Author:** ![aaron](https://dub1.discourse-cdn.com/flex013/user_avatar/community.appfarm.io/aaron/32/36_2.png) [@aaron](https://community.appfarm.io/u/aaron)\
**Post date:** [December 2, 2022, 1:33pm UTC](https://community.appfarm.io/t/how-do-i-fix-csp-errors-when-doing-hotjar-integration/61/2 "2022-12-02T13:33:38Z")

</div>

You need to add those URLs (you can’t connect to) in Environment Config → Content Security → Web Request Targets.

For E.g. add “https://\*.hotjar.com” as a web request target.

Do this for each environment using the Hotjar script.
