Use web SDK in the electron app

Description
Websdk is working fine from the web, Is it possible to use the same in the electron app ?

Browser Console Error

Refused to load the script source zoom url/zoomus-websdk-zoommtgMain.umd.min.js' because it violates the following Content Security Policy directive: "script-src 'self' 'unsafe-inline'". Note that 'script-src-elem' was not explicitly set, so 'script-src' is used as a fallback.

Which Web Meeting SDK version?
Knowing the version can help us to identify your issue faster. [e.g. 1.9.9]

Meeting SDK Code Snippets
I added dependency locally so that it does not require to reach it out zoom for cors.

<!-- Dependencies for client view and component view -->
        <script src="[dot] /zoom-lib/react.min.js"></script>
        <script src="[dot] /zoom-lib/react-dom.min.js"></script>
        <script src="[dot] /zoom-lib/redux.min.js"></script>
        <script src="[dot] /zoom-lib/redux-thunk.min.js"></script>
        <script src="[dot] /zoom-lib/lodash.min.js"></script>
        
        <script src="[dot] /zoom-lib/zoom-meeting-3.11.0.min.js"></script>

To Reproduce(If applicable)
Steps to reproduce the behavior:

  1. Go to ‘…’
  2. Click on ‘…’
  3. Scroll down to ‘…’
  4. See error

Screenshots

Troubleshooting Routes

Device (please complete the following information):

  • Device: [e.g. Macbook Pro] Dell
  • OS: [e.g. macOS 11] Windows 11 Pro
  • Browser: [e.g. Chrome] Electron
  • Browser Version [e.g. 88.0.4324.150 (Official Build) (x86_64)]

Additional context
I see zoom-meeting-3.11.0.min is trying to fetch it from source[dot]zoom[dot]us and is there a way to store those required file in the locally so that it does not need to fetch it from server

zoom-meeting-3.11.0.min.js:2 Refused to load the script 'https://source.zoom.us/3.11.0/ui/zoomus-websdk-zoommtgMain.umd.min.js' because it violates the following Content Security Policy directive: "script-src 'self' 'unsafe-inline'". Note that 'script-src-elem' was not explicitly set, so 'script-src' is used as a fallback.
a.l	@	zoom-meeting-3.11.0.min.js:2
a.f.j	@	zoom-meeting-3.11.0.min.js:2
(anonymous)	@	zoom-meeting-3.11.0.min.js:2
a.e	@	zoom-meeting-3.11.0.min.js:2
(anonymous)	@	zoom-meeting-3.11.0.min.js:2
startMeeting	@	zoom-meeting.js:43
(anonymous)	@	zoom-meeting.js:33
Promise.then		
getSignature	@	zoom-meeting.js:31
onclick	@	index.html:25
zoom-meeting-3.11.0.min.js:2 Uncaught (in promise) ChunkLoadError: Loading chunk 8355 failed.
(error: https://source.zoom.us/3.11.0/ui/zoomus-websdk-zoommtgMain.umd.min.js)
    at a.f.j (zoom-meeting-3.11.0.min.js:2:882940)
    at zoom-meeting-3.11.0.min.js:2:879203
    at Array.reduce (<anonymous>)
    at a.e (zoom-meeting-3.11.0.min.js:2:879168)
    at Proxy.<anonymous> (zoom-meeting-3.11.0.min.js:2:404974)
    at startMeeting (zoom-meeting.js:43:11)
    at zoom-meeting.js:33:7

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