# How to use video sdk on chrome extension

**URL:** <https://devforum.zoom.us/t/how-to-use-video-sdk-on-chrome-extension/138805>\
**Category:** Video SDK\
**Tags:** api, video-sdk\
**Created:** [November 19, 2025, 2:44am UTC](https://devforum.zoom.us/t/how-to-use-video-sdk-on-chrome-extension/138805 "2025-11-19T02:44:09Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ruben5](https://avatars.discourse-cdn.com/v4/letter/r/b2d939/32.png) [@Ruben5](https://devforum.zoom.us/u/Ruben5)\
**Post date:** [November 19, 2025, 2:44am UTC](https://devforum.zoom.us/t/how-to-use-video-sdk-on-chrome-extension/138805/1 "2025-11-19T02:44:09Z")

</div>

## How to Use Video SDK on a Chrome Extension?

**Video SDK Type and Version**

Web SDK 2.3.0

**Description**  
_Details on your question, workflow or the problem you’re trying to solve._

i want to make a Chrome extension with Zoom Video SDK, but when i followed the guide, it failed

```auto
import ZoomVideo from '@zoom/videosdk'

const client = ZoomVideo.createClient()

await client.init('en-US', 'Global', { patchJsMedia: true })

```

**Error?**  
_in the Chrome Dev Tools, it gives me the error_

```auto
Loading the script 'https://source.zoom.us/videosdk/2.3.0/lib/js_media.min.js' violates the following Content Security Policy directive: "script-src 'self' 'wasm-unsafe-eval' 'inline-speculation-rules' http://localhost:* http://127.0.0.1:*". Note that 'script-src-elem' was not explicitly set, so 'script-src' is used as a fallback. The action has been blocked.

{type: 'INVALID_PARAMETERS', reason: 'dependent assets are not accessible', errorCode: 5001}

```

---

<div class="post-metadata">

**Author:** ![expertswho](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/expertswho/32/60945_2.png) [@expertswho](https://devforum.zoom.us/u/expertswho)\
**Post date:** [November 19, 2025, 10:04pm UTC](https://devforum.zoom.us/t/how-to-use-video-sdk-on-chrome-extension/138805/2 "2025-11-19T22:04:20Z")

</div>

hi @Ruben5 ,

All web pages interacting with Zoom need to be CSP protected and you need to allow the access to the external script.  
chrome has a policy, which by default I believe does not allow external scripts.  
So this is the advice from Google  
You use a Chrome extension’s Content Security Policy (CSP) by defining the `content_security_policy` key in your `manifest.json` file to control what resources the extension can load and execute. The default CSP blocks inline scripts, `eval()`, and remote scripts, so you must relax these restrictions in the manifest by explicitly allowing local or remote sources and other features if needed. For Manifest V3, the CSP is structured differently with specific keys for `extension_pages` and `sandbox` pages.

I hope that gets you further  
All the best

John

---

<div class="post-metadata">

**Author:** ![Ruben5](https://avatars.discourse-cdn.com/v4/letter/r/b2d939/32.png) [@Ruben5](https://devforum.zoom.us/u/Ruben5)\
**Post date:** [November 20, 2025, 3:11am UTC](https://devforum.zoom.us/t/how-to-use-video-sdk-on-chrome-extension/138805/3 "2025-11-20T03:11:29Z")

</div>

it seems Chrome Extension Manifest V3 does not allow external scripts.

can i bundle the Video SDK inside the Chrome Extension?

i checked the doc, and it seems the second parameter `Global` can be replaced with the local URL.

and In the official sample `github.com/zoom/videosdk-web-sample`

The code looks like this, it will load all the scripts from local

```javascript
await zmClient.init('en-US', `${window.location.origin}/lib`);

```

So I changed my code like this

```javascript
await client.init('en-US', chrome.runtime.getURL('vendor/@zoom/videosdk'), { patchJsMedia: true })

```

But it is still not working, and gives me the error:  
`Loading the script ‘``https://source.zoom.us/4.1.0/lib/av/js_media.min.js’`` violates the following Content Security Policy directive: “script-src ‘self’ ‘wasm-unsafe-eval’ ``http://localhost:3303``”. Note that ‘script-src-elem’ was not explicitly set, so ‘script-src’ is used as a fallback. The action has been blocked.`

i don’t know if it’s because in the Chrome extension  
the local URL starts with `chrome-extension://` not `https://`

---

<div class="post-metadata">

**Author:** ![expertswho](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/expertswho/32/60945_2.png) [@expertswho](https://devforum.zoom.us/u/expertswho)\
**Post date:** [November 21, 2025, 4:45pm UTC](https://devforum.zoom.us/t/how-to-use-video-sdk-on-chrome-extension/138805/4 "2025-11-21T16:45:59Z")

</div>

hi @Ruben5 ,

Sorry I am not an expert on Chrome extensions.  
Yes, you can download the SDK and have it local.  
I know of people who have written Zoom apps within an extension.  
Their use was getting chat data, so not the video sdk  
you could have auth issues because zoom likes to return to a URL.  
All the best

John

---

<div class="post-metadata">

**Author:** ![Ruben5](https://avatars.discourse-cdn.com/v4/letter/r/b2d939/32.png) [@Ruben5](https://devforum.zoom.us/u/Ruben5)\
**Post date:** [December 1, 2025, 12:06pm UTC](https://devforum.zoom.us/t/how-to-use-video-sdk-on-chrome-extension/138805/5 "2025-12-01T12:06:16Z")

</div>

now, i’m facing the issue

```auto
js_media.min.js:2 Failed to save to cache TypeError: Failed to execute 'put' on 'Cache': Request scheme 'chrome-extension' is unsupported
    at js_media.min.js:2:720157
    at async js_media.min.js:2:720061
    at async p (js_media.min.js:2:719883)

```

can i skip cache it?
