score:1

Accepted answer

Problem

This is happening because Dropbox doesn't allow cross origin requests through their normal domain. See the MDN CORS docs for more info on cross origin requests.

Solution

You should be able to use the Dropbox HTTP api (specifically the get file resource). Or, you can use the Dropbox JS api if you want to use JS functions instead of http requests.

Or, as you have mentioned in the comments, you can simply avoid dropbox all together by hosting your own JS files 😁


Related Query

More Query from same tag