NPM project loading from CDN?

Current Result: NPM imported code is loading more code from CDN triggering " CORS errors.
Expected result: NPM imported code contains all code that needs to import so no CORS errors.

Browser Console Error

Refused to load the script '' because it violates the following Content Security Policy directive: "script-src 'self' 'unsafe-eval' ....<removed due to forum rules about many links>...  Note that 'script-src-elem' was not explicitly set, so 'script-src' is used as a fallback.

This error is then logged:

    reason: "depedent assets are not accessible"

Which Web Video SDK version?

"name": "@zoom/videosdk",
"version": "1.3.0",

** Code Example **

import ZoomVideo from '@zoom/videosdk';


async function setupCall() {
      clientRef.current = ZoomVideo.createClient();
      clientRef.current.init('en-US', 'CDN');
      await clientRef.current.join(name, signature, userName, password);
      const localStream = clientRef.current.getMediaStream();
      localStream.startVideo({ videoElement: videoPlayerRef.current });

Hey @michael.kantor

Thanks for your feedback.

From the console error on the browser, it seems to be related to the CSP. Could you please check the CSP setting on your site?


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