Description
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 'https://dmogdx0jrul3u.cloudfront.net/videosdk/1.3.0/lib/js_media.min.js' 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"
type: "INVALID_PARAMETERS"
}
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();
setStream(localStream);
localStream.startVideo({ videoElement: videoPlayerRef.current });
}