#  Zoom JS SDK | OpenUrl | Accessing Untrusted Web Site

**URL:** <https://devforum.zoom.us/t/zoom-js-sdk-openurl-accessing-untrusted-web-site/74653>\
**Category:** App Marketplace\
**Created:** [August 22, 2022, 3:42pm UTC](https://devforum.zoom.us/t/zoom-js-sdk-openurl-accessing-untrusted-web-site/74653 "2022-08-22T15:42:48Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![sonimukeshand](https://avatars.discourse-cdn.com/v4/letter/s/7c8e57/32.png) [@sonimukeshand](https://devforum.zoom.us/u/sonimukeshand)\
**Post date:** [August 22, 2022, 3:42pm UTC](https://devforum.zoom.us/t/zoom-js-sdk-openurl-accessing-untrusted-web-site/74653/1 "2022-08-22T15:42:48Z")

</div>

Hi team,

I am trying to use zoom js sdk per zoom’s documentation below. Use case if to have a link in the zoom app which would open up a url in browser. The app does open up the url in browser but throws an “Accessing Untrusted web site” error. I have already whitelisted the url in my app but still the error persists. It works fine for urls which are globally whitelisted by zoom e.g. [youtube.com](http://youtube.com)

 ![ZoomApp_Error_openurl](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/0/d/0dbafbedae99b00fb658726d1758520c9a73a10e.jpeg)

Any help in this regard is highly appreciated. Attaching screenshot of the issue.

> **[ZoomSdk | @zoom/appssdk - v0.16.3](https://appssdk.zoom.us/classes/ZoomSdk.ZoomSdk-1.html#config)**
>
> Documentation for @zoom/appssdk - v0.16.3

> **[ZoomSdk | @zoom/appssdk - v0.16.3](https://appssdk.zoom.us/classes/ZoomSdk.ZoomSdk-1.html#openUrl)**
>
> Documentation for @zoom/appssdk - v0.16.3

---

<div class="post-metadata">

**Author:** ![mracz](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/mracz/32/37406_2.png) [@mracz](https://devforum.zoom.us/u/mracz)\
**Post date:** [August 26, 2022, 9:46am UTC](https://devforum.zoom.us/t/zoom-js-sdk-openurl-accessing-untrusted-web-site/74653/2 "2022-08-26T09:46:58Z")

</div>

Hi Mukesh, I just had a similar issue, and it was caused by the query parameters added to the URL the app was trying to open. It seems the URL needs to be URL-encoded before passing it to openUrl, otherwise spaces and other special characters confuse the API.

---

<div class="post-metadata">

**Author:** ![sonimukeshand](https://avatars.discourse-cdn.com/v4/letter/s/7c8e57/32.png) [@sonimukeshand](https://devforum.zoom.us/u/sonimukeshand)\
**Post date:** [August 29, 2022, 1:03pm UTC](https://devforum.zoom.us/t/zoom-js-sdk-openurl-accessing-untrusted-web-site/74653/3 "2022-08-29T13:03:02Z")

</div>

Thank you Mate. Do you mind sharing example of a perfect url that works just fine when passed to openUrl please.

---

<div class="post-metadata">

**Author:** ![mracz](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/mracz/32/37406_2.png) [@mracz](https://devforum.zoom.us/u/mracz)\
**Post date:** [August 31, 2022, 8:42am UTC](https://devforum.zoom.us/t/zoom-js-sdk-openurl-accessing-untrusted-web-site/74653/4 "2022-08-31T08:42:00Z")

</div>

I had an url like “h ttps://xxx.typeform.com/to/h23g7ev1#name=Máté Rácz”, which didn’t work when passed to openUrl.

After using encodeURI(), the url becomes  
“h ttps://xxx.typeform.com/to/h23g7ev1#name=M%C3%A1t%C3%A9%20R%C3%A1cz”, which worked fine.

Hope this solves your problem too!

---

<div class="post-metadata">

**Author:** ![sonimukeshand](https://avatars.discourse-cdn.com/v4/letter/s/7c8e57/32.png) [@sonimukeshand](https://devforum.zoom.us/u/sonimukeshand)\
**Post date:** [August 31, 2022, 2:22pm UTC](https://devforum.zoom.us/t/zoom-js-sdk-openurl-accessing-untrusted-web-site/74653/5 "2022-08-31T14:22:45Z")

</div>

I tried to put in a url without query string but still the same behavior. e.g. [https://xyz.com/abc](https://xyz.com/abc)

---

<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:** [September 22, 2022, 1:43am UTC](https://devforum.zoom.us/t/zoom-js-sdk-openurl-accessing-untrusted-web-site/74653/6 "2022-09-22T01:43:27Z")

</div>

Closed on September 22, 2022, 1:43am UTC

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