# Downloading file in Zoom App

**URL:** <https://devforum.zoom.us/t/downloading-file-in-zoom-app/96532>\
**Category:** Zoom Apps\
**Created:** [October 10, 2023, 1:05pm UTC](https://devforum.zoom.us/t/downloading-file-in-zoom-app/96532 "2023-10-10T13:05:13Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![yuliia](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/yuliia/32/52881_2.png) [@yuliia](https://devforum.zoom.us/u/yuliia)\
**Post date:** [October 10, 2023, 1:05pm UTC](https://devforum.zoom.us/t/downloading-file-in-zoom-app/96532/1 "2023-10-10T13:05:13Z")

</div>

**Zoom Apps Configuration**  
Flask + Vue.js

**Description**  
I want to (on a button click) fetch from a backend (on Flask) and download a .docx file from a single-page Vue.js app. At the moment, my solution works from a regular Chrome browser, however not from inside Zoom’s built-in browser. I don’t see any errors in the console as well.

After the file is sent from BE, the FE code does as follows:

```auto
async download() {
      await fetch(`${config.apiUrl}/download`)
          .then((response) => {
            response.blob().then((blob) => {
              const url = window.URL.createObjectURL(blob);
              window.open(url);
            })
          })
}

```

**Error?**  
The above code does not produce any errors, however file downloading does not happen, while it works in a regular browser.

Plus, when I change the last line to:

```auto
window.open(url, "_self");

```

I get _“403 Forbidden, domain or scheme is not allowed”_. But the domain is whitelisted, see further.

**Troubleshooting Routes**  
The format of the created `url` is something like `blob:https://1234567.ngrok.app/b1e2f3eb-bd45-6a78-ac91-e011121ce3f4`. I have whitelisted the domain of the url `1234567.ngrok.app` under the _Domain Allow List_, however this did not help.

How can I make downloading a file on a button click from a Zoom App work?

I’d appreciate any input on this problem. Thanks in advance.

---

<div class="post-metadata">

**Author:** ![donte.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/donte.zoom/32/24412_2.png) [@donte.zoom](https://devforum.zoom.us/u/donte.zoom)\
**Post date:** [October 11, 2023, 6:08pm UTC](https://devforum.zoom.us/t/downloading-file-in-zoom-app/96532/2 "2023-10-11T18:08:24Z")

</div>

@yuliia,

Thank you for posting in the Zoom Developer Forum. I believe, downloading files through the Zoom App might be not possible, and we recommend sending the user to the system browser using OpenURL function.

With regards to the _403 Forbidden, domain or scheme is not allowed”_ error, have you verified that the response for the source URL does have OWASP headers enabled?

> **[OWASP Secure Headers Project | OWASP Foundation](https://owasp.org/www-project-secure-headers/)**
>
> OWASP Secure Headers Project on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.

> **[OWASP Headers](https://developers.zoom.us/docs/zoom-apps/security/owasp/)**
>
> 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.
