# Access to XMLHttpRequest at 'av/1506\_audio.encode.wasm' from origin 'https://web.vptsapp.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource

**URL:** <https://devforum.zoom.us/t/access-to-xmlhttprequest-at-av-1506-audio-encode-wasm-from-origin-https-web-vptsapp-com-has-been-blocked-by-cors-policy-no-access-control-allow-origin-header-is-present-on-the-requested-resource/66414>\
**Category:** Meeting SDK\
**Created:** [March 25, 2022, 7:05am UTC](https://devforum.zoom.us/t/access-to-xmlhttprequest-at-av-1506-audio-encode-wasm-from-origin-https-web-vptsapp-com-has-been-blocked-by-cors-policy-no-access-control-allow-origin-header-is-present-on-the-requested-resource/66414 "2022-03-25T07:05:48Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![vchaurasiya4](https://avatars.discourse-cdn.com/v4/letter/v/ccd318/32.png) [@vchaurasiya4](https://devforum.zoom.us/u/vchaurasiya4)\
**Post date:** [March 25, 2022, 7:05am UTC](https://devforum.zoom.us/t/access-to-xmlhttprequest-at-av-1506-audio-encode-wasm-from-origin-https-web-vptsapp-com-has-been-blocked-by-cors-policy-no-access-control-allow-origin-header-is-present-on-the-requested-resource/66414/1 "2022-03-25T07:05:49Z")

</div>

Hello Zoom Team,

I am getting this CORS error when my angular application trying to access below files.

“Access to XMLHttpRequest at ‘h_ **s://source.zoom.us/2.2.0/lib/av/1506\_audio.encode.wasm’ from origin 'h** _s://web.vptsapp.com’ has been blocked by CORS policy: No ‘Access-Control-Allow-Origin’ header is present on the requested resource.”

“Access to XMLHttpRequest at ‘h_ **s://source.zoom.us/2.2.0/lib/av/1506\_video.simd.wasm’ from origin 'h** _s://web.vptsapp.com’ has been blocked by CORS policy: No ‘Access-Control-Allow-Origin’ header is present on the requested resource.”

Please let me know the solution asap.

Thanks  
Vaibhav Chaurasiya  
[vchaurasiya4@hotmail.com](mailto:vchaurasiya4@hotmail.com)

---

<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:** [December 22, 2022, 9:26pm UTC](https://devforum.zoom.us/t/access-to-xmlhttprequest-at-av-1506-audio-encode-wasm-from-origin-https-web-vptsapp-com-has-been-blocked-by-cors-policy-no-access-control-allow-origin-header-is-present-on-the-requested-resource/66414/2 "2022-12-22T21:26:35Z")

</div>

Welcome, @vchaurasiya4,

Thank you for posting a Zoom Developer Forum, and we apologize for the missed response here. I am happy to help, as a start can you share if you have Cors enabled in the backend of your application? For more information about Cross-Origin Resource Sharing (CORS), please see this helpful resource:

> **[Cross-Origin Resource Sharing (CORS) - HTTP | MDN](https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS)**
>
> Cross-Origin Resource Sharing (CORS) is an HTTP-header based mechanism that allows a server to indicate any origins (domain, scheme, or port) other than its own from which a browser should permit loading resources. CORS also relies on a mechanism by...

Also, you may find this support document with instructions on how to enable cross-origin isolation for the web meeting SDK helpful:

[https://marketplace.zoom.us/docs/sdk/overview/websdk-gallery-view/](https://marketplace.zoom.us/docs/sdk/overview/websdk-gallery-view/)

---

<div class="post-metadata">

**Author:** ![eltonjorn](https://avatars.discourse-cdn.com/v4/letter/e/ccd318/32.png) [@eltonjorn](https://devforum.zoom.us/u/eltonjorn)\
**Post date:** [May 31, 2023, 7:32am UTC](https://devforum.zoom.us/t/access-to-xmlhttprequest-at-av-1506-audio-encode-wasm-from-origin-https-web-vptsapp-com-has-been-blocked-by-cors-policy-no-access-control-allow-origin-header-is-present-on-the-requested-resource/66414/3 "2023-05-31T07:32:19Z")

</div>

This error typically occurs in web development when making cross-origin requests. This error is related to the same-origin policy implemented by web browsers for security reasons. The same-origin policy restricts web pages from making requests to a different domain unless the server explicitly allows it by including the ‘[Access-Control-Allow-Origin](https://net-informations.com/q/js/cors-policy.html)’ header in the response. To resolve this issue, the server hosting the requested resource needs to include the appropriate ‘Access-Control-Allow-Origin’ header, specifying the domain or origins allowed to access the resource. This can be done by configuring the server’s response headers or by using server-side middleware or frameworks that handle cross-origin requests.

JSON with Padding is just a way to circumvent same-origin policy, when CORS is not an option. This is risky and a bad practice. Avoid using this.

If you want to bypass that restriction when fetching the contents with fetch API or XMLHttpRequest in javascript, you can use a proxy server so that it sets the header Access-Control-Allow-Origin to \*.

If you need to enable CORS on the server in case of localhost, you need to have the following on request header.

`Access-Control-Allow-Origin: http://localhost:9999`
