Getting net::ERR_ABORTED 403 Error on Icon/Font FIles Using Spaces

I am trying to run my Django App locally loading static files from my Sapces, most of css static files load, but some file slike icons don’t, it gets this error: net::ERR_ABORTED 403

I applied CORS plicies in my Spaces (GET and headers = ‘*’) and also applied CORS in my Django project




I really don’t know what else is failing, so I appreciate some help

Submit an answer

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!

Sign In or Sign Up to Answer

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.

Bobby Iliev
Site Moderator
Site Moderator badge
September 6, 2023

Hi there,

I could suggest checking a couple of things here:

  1. Make sure the font and icon files in your Spaces have the correct permissions. They should be set to public to allow public access.

  2. As you are seeing this mainly for font assets, ensure that the Access-Control-Allow-Origin header is present when these font resources are fetched. Sometimes, the issue might not be CORS but rather the Content-Type being sent by Spaces. Ensure that the font or icon files are being served with the correct MIME types. For instance:

  • .woff files should be served with font/woff
  • .woff2 files with font/woff2
  • .ttf files with font/ttf

Let me know how it goes!



Try DigitalOcean for free

Click below to sign up and get $200 of credit to try our products over 60 days!

Sign up

Featured on Community

Get our biweekly newsletter

Sign up for Infrastructure as a Newsletter.

Hollie's Hub for Good

Working on improving health and education, reducing inequality, and spurring economic growth? We'd like to help.

Become a contributor

Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.

Welcome to the developer cloud

DigitalOcean makes it simple to launch in the cloud and scale up as you grow — whether you're running one virtual machine or ten thousand.

Learn more
DigitalOcean Cloud Control Panel