By thiagolara
Hello folks, I have a website in Django and static and media files are stored in DO Spaces. I’m not sure what is happening, I can see all files inside spaces but not all of them are loading correctly.
For example, in Django admin I can’t see static files. Taking a look at console, returns 403 - Forbidden.
Same occurs for media files, some media files I can see others I cant.
How can it happens? Sometimes work and sometimes don’t. I’m facing this problem some hours and I can’t find a solution;
Any ideas will be appreciated.
INFO I created a CORS configuration in DO Spaces to allow the GET method and added Access-Control-Allow-Origin to allowed headers
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Hi there @thiagolara,
It sounds like that you’ve done the configuration correctly. Have you tried clearing your browser cache as well?
Regards, Bobby
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.