I have used DO spaces for static files and set CORS policy from site * and header *. Also used django-cors-header to CORS_ORIGIN_ALLOW_ALL = True. Still my font-awesome/ webfont.woff 4.7 files and tinymce modern/theme.min.js is showing net:: ERR_Aborted 403 (Forbidden). I disable my cdn, even when cdn was there purge cache for cdn doesn’t helped. I am using nginx. Django 3.2 Can please anyone guide my?
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.
Have you added your site to CORS configuration? Just like the documentation: https://docs.digitalocean.com/products/spaces/how-to/configure-cors/ Go to Spaces > Settings. Under CORS Configurations add your site’s domain e.g. https://example.com/ and another configuration for https://www.example.com/
It’s unfortunate how CORS much time you lose figuring this out on Digitalocean spaces. Regards
This comment has been deleted
One of the Error : Failed to load resource: the server responded with fontawesome-webfont.woff2:1 a status of 403 (Forbidden) Or GET https://sgp1.digitaloceanspaces.com/xyz-static-font-awesome.min.css:1spaces/static/vendor/font-awesome/fonts/fontawesome-webfont.ttf?v=4.7.0 net::ERR_ABORTED 403 (Forbidden)