Join 1M+ other developers and:
- Get help and share knowledge in Q&A
- Subscribe to topics of interest
- Get courses & tools that help you grow as a developer or small business owner
Django - DO Spaces - CORS problem
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.
I created a CORS configuration in DO Spaces to allow the GET method and added Access-Control-Allow-Origin to allowed headers
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.×