Getting 403 Forbidden from Spaces when using CURL from droplet

Posted May 25, 2020 1.1k views
DigitalOcean Spaces

I’m downloading images from my spaces using CURL on a droplet. It was working for awhile but now I’m getting a 403 Forbidden response. I’ve tried setting the CORS policy to * and headers to *, but it doesn’t seem to work. It’s like spaces has IP blocked my server. Is there a whitelist somewhere I’m not seeing? What should I do?

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
1 answer

Hello, @teel002

Have you tried to purge the cache if you have the CDN option enabled on your Space? Also in the CORS Configurations make sure you have the GET method allowed as well.

If this is not working I will recommend you to contact our support team and they will assist you with the issue.

Hope that helps!