Skip to main content
Newcomer
January 31, 2024
Question

Zoom Web SDK whiteboard file upload

Whiteboard in Zoom Web SDK throws the following CORS error on file upload

Access to fetch at 'https://nws.zoom.us/nws/das/api/v1/documents/XX/upload?name=360_F_159183621_0YTKAAqAA7GI7DlCBfYJ2wfKbC6Zf30V.jpg' from origin 'http://localhost:3001' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.

=============

zoomus/websdk: v2.17.0
node: v18.13.0
react: v18.2.0

1 reply

BakerHe
Community Champion | Employee
Community Champion | Employee
March 15, 2024

As I know, we can't access zoom whiteboard api from localhost. It's blocked by browser CORS policy. 

 

Try this to bypass this limitation (for development only): https://stackoverflow.com/questions/3102819/disable-same-origin-policy-in-chrome

Translate