Hey guys I am using npm package to work with dropbox. However when I try to upload a file I get the following error
XMLHttpRequest cannot load https://content.dropboxapi.com/2/files/upload. Response to preflight request doesn't pass access control check: The value of the 'Access-Control-Allow-Origin' header in the response must not be the wildcard '*' when the request's credentials mode is 'include'. Origin 'http://localhost:3000' is therefore not allowed access. The credentials mode of requests initiated by the XMLHttpRequest is controlled by the withCredentials attribute.
Any idea why is this happening and what can I do about this?
Thank you.