# Web Chat not compatible with sites that have a Content Security Policy unless

**URL:** <https://devforum.zoom.us/t/web-chat-not-compatible-with-sites-that-have-a-content-security-policy-unless/133005>\
**Category:** API and Webhooks\
**Tags:** api, sdk\
**Created:** [May 20, 2025, 7:02pm UTC](https://devforum.zoom.us/t/web-chat-not-compatible-with-sites-that-have-a-content-security-policy-unless/133005 "2025-05-20T19:02:52Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![robert.louis.murphy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/robert.louis.murphy/32/64813_2.png) [@robert.louis.murphy](https://devforum.zoom.us/u/robert.louis.murphy)\
**Post date:** [May 20, 2025, 7:02pm UTC](https://devforum.zoom.us/t/web-chat-not-compatible-with-sites-that-have-a-content-security-policy-unless/133005/1 "2025-05-20T19:02:52Z")

</div>

###Zoom CC API  
**zoom-web-sdk web-sdk zcc-sdk web-chat**  
_[Add chat client | Contact Center SDK | web](https://developers.zoom.us/docs/contact-center/web/chat/)_

**Description**  
_If your website uses a Content Security Policy, Zoom Web Chat will only function if you enable unsafe-inline_

**Error**  
_script-src-elem inline blocked_  
_style-src-attr inline blocked_

**How To Reproduce**  
_Steps to reproduce the behavior:_  
_1. Add [https://us01ccistatic.zoom.us/us01cci/web-sdk/zcc-sdk.js](https://us01ccistatic.zoom.us/us01cci/web-sdk/zcc-sdk.js) to your web page (see instructions linked above)_  
_2. Include you Content-Security-Policy header_  
_3. Load your page in a browser_  
_4. The chat will be visible and unformatted before anyone tries to interact with it and it won’t work._

---

<div class="post-metadata">

**Author:** ![alexm](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/alexm/32/67701_2.png) [@alexm](https://devforum.zoom.us/u/alexm)\
**Post date:** [May 21, 2025, 4:00pm UTC](https://devforum.zoom.us/t/web-chat-not-compatible-with-sites-that-have-a-content-security-policy-unless/133005/2 "2025-05-21T16:00:18Z")

</div>

have you tried updating your content security policy to include `Content-Security-Policy: script-src-elem 'self' https://us01ccistatic.zoom.us;` ?

---

<div class="post-metadata">

**Author:** ![robert.louis.murphy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/robert.louis.murphy/32/64813_2.png) [@robert.louis.murphy](https://devforum.zoom.us/u/robert.louis.murphy)\
**Post date:** [May 23, 2025, 12:58am UTC](https://devforum.zoom.us/t/web-chat-not-compatible-with-sites-that-have-a-content-security-policy-unless/133005/3 "2025-05-23T00:58:35Z")

</div>

Actually I was able to get it to work the trick was to include the sha384 hash of each inline script and style in the csp response header such as script-src ‘sha384-blahblahhblablabla=’ so my script-src contains https://\*.zoom.us and self and the response specific nonce and each of the hashes that correspond to each inline script and then style-src is similar containing the hashes for the inline styles

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/6/1/614bdd549b610bbaa46ff934617683a02bdaa03c.png) [@system](https://devforum.zoom.us/u/system)\
**Post date:** [May 24, 2025, 12:59am UTC](https://devforum.zoom.us/t/web-chat-not-compatible-with-sites-that-have-a-content-security-policy-unless/133005/4 "2025-05-24T00:59:11Z")

</div>

Closed on May 24, 2025, 12:59am UTC

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.
