Scale up as you grow — whether you're running one virtual machine or ten thousand.

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.

I deployed my React.js + Adonis.js app to Digital Ocean Spaces, but I’m running into a CORS error when trying to access files from my app.
If I copy the file URL and paste it into a new browser tab, the file loads successfully.
However, when trying to fetch it from my app, I get a CORS error in the console.
The same code worked perfectly on AWS S3 without any CORS issues. Here’s an example of the error: Access to fetch at ‘<DigitalOcean_Spaces_URL>/file_directory/<file>.pdf’ from origin ‘<my_app_URL>’ has been blocked by CORS policy: No ‘Access-Control-Allow-Origin’ header is present on the requested resource.
I have followed Digital Ocean’s documentation on setting CORS permissions, but the issue persists.
Has anyone encountered this before? Any ideas on how to resolve it?
SarkariResultht
KFSys
Arne van Hoorn
alexdo
4287c71658bd4ea39bef277d491b1c
4287c71658bd4ea39bef277d491b1c
Demanix
Demanix
devjk1
Jordan
LC Labs Sp. z o.o.
a0cd9be01b14447384f79073fc121f