# Meeting SDK (JavaScript) not working after hosting. (Working perfectly in Localhost)

**URL:** <https://devforum.zoom.us/t/meeting-sdk-javascript-not-working-after-hosting-working-perfectly-in-localhost/94373>\
**Category:** Web\
**Created:** [September 2, 2023, 9:11am UTC](https://devforum.zoom.us/t/meeting-sdk-javascript-not-working-after-hosting-working-perfectly-in-localhost/94373 "2023-09-02T09:11:44Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![amalkjose](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/amalkjose/32/51654_2.png) [@amalkjose](https://devforum.zoom.us/u/amalkjose)\
**Post date:** [September 2, 2023, 9:11am UTC](https://devforum.zoom.us/t/meeting-sdk-javascript-not-working-after-hosting-working-perfectly-in-localhost/94373/1 "2023-09-02T09:11:44Z")

</div>

**Meeting SDK (JavaScript) not working after hosting. (Working perfectly in Localhost)**

**SDK Version : 2.15.2**

It showing join button. And when I click on join, Its getting errors in console and stuck on joining page.

**Code Used**

ZoomMtg.setZoomJSLib(‘[https://source.zoom.us/2.15.2/lib](https://source.zoom.us/2.15.2/lib)’, ‘/av’)  
ZoomMtg.preLoadWasm()  
ZoomMtg.prepareWebSDK()  
ZoomMtg.i18n.load(‘en-US’)  
ZoomMtg.i18n.reload(‘en-US’)

ZoomMtg.generateSDKSignature({  
meetingNumber: meetingNumber,  
sdkKey: sdkKey,  
sdkSecret: sdkSecret,  
role: role,  
success: function (res) {  
ZoomMtg.init({  
leaveUrl: leaveUrl,  
success: (success) =\> {  
console.log(success)  
ZoomMtg.join({  
signature: res.result,  
sdkKey: sdkKey,  
meetingNumber: meetingNumber,  
passWord: passWord,  
userName: userName,  
userEmail: userEmail,  
success: (success) =\> {  
console.log(success)  
},  
error: (error) =\> {  
console.log(error)  
},  
})  
},  
error: (error) =\> {  
console.log(error)  
}  
})  
},  
});

Please help me to solve this

Testing URL : [https://events.amaljyothi.ac.in/zoom/123](https://events.amaljyothi.ac.in/zoom/123)

---

<div class="post-metadata">

**Author:** ![chunsiong.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/chunsiong.zoom/32/35488_2.png) [@chunsiong.zoom](https://devforum.zoom.us/u/chunsiong.zoom)\
**Post date:** [September 4, 2023, 12:47am UTC](https://devforum.zoom.us/t/meeting-sdk-javascript-not-working-after-hosting-working-perfectly-in-localhost/94373/2 "2023-09-04T00:47:50Z")

</div>

@amalkjose are you still getting an error on this?  
Ive tried the url, and it shows meeting not started

![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/c/9/c966d45b8dbb68cc97c77205561351bb8d13df2e.png)

---

<div class="post-metadata">

**Author:** ![amalkjose](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/amalkjose/32/51654_2.png) [@amalkjose](https://devforum.zoom.us/u/amalkjose)\
**Post date:** [September 4, 2023, 2:56am UTC](https://devforum.zoom.us/t/meeting-sdk-javascript-not-working-after-hosting-working-perfectly-in-localhost/94373/3 "2023-09-04T02:56:56Z")

</div>

Ohh sorry meeting was closed. Now I changed role to 1 (Host).

Now please check. It is getting stuck over there…  
Same issue while joining as participant. (After clicking on Join button on you mentioned screen)

Error Screenshot : [Screenshot 2023-09-02 143513.png - Google Drive](https://drive.google.com/file/d/1A_4q4ilSEyvZGJ8ETdVOXdirFpH38KPK/view?usp=sharing)

---

<div class="post-metadata">

**Author:** ![chunsiong.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/chunsiong.zoom/32/35488_2.png) [@chunsiong.zoom](https://devforum.zoom.us/u/chunsiong.zoom)\
**Post date:** [September 4, 2023, 4:03am UTC](https://devforum.zoom.us/t/meeting-sdk-javascript-not-working-after-hosting-working-perfectly-in-localhost/94373/4 "2023-09-04T04:03:54Z")

</div>

@amalkjose ,

I understand. Could you try out this guidelines?  
I believe on your hosting, you will need to allow some domains using Content Security Policy

> **[Meeting SDK - web - Browser support](https://developers.zoom.us/docs/meeting-sdk/web/browser-support/#content-security-policy-header)**
>
> The Zoom Developer Platform is an open platform that allows third-party developers to build applications and integrations upon Zoom’s video-first unified communications platform.

---

<div class="post-metadata">

**Author:** ![amalkjose](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/amalkjose/32/51654_2.png) [@amalkjose](https://devforum.zoom.us/u/amalkjose)\
**Post date:** [September 4, 2023, 9:00am UTC](https://devforum.zoom.us/t/meeting-sdk-javascript-not-working-after-hosting-working-perfectly-in-localhost/94373/5 "2023-09-04T09:00:09Z")

</div>

Thanks. Its working now…

Have some issue with Serve side

---

<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:** [October 4, 2023, 7:00pm UTC](https://devforum.zoom.us/t/meeting-sdk-javascript-not-working-after-hosting-working-perfectly-in-localhost/94373/6 "2023-10-04T19:00:54Z")

</div>

Closed on October 4, 2023, 7:00pm UTC

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