[Django]-Relative font URLs in CSS cause 403s on S3

0๐Ÿ‘

I had a similar problem but while using google cloud storage. The solution for me was to set those specific files as public. Google cloud storage enables one to make data public in a bucket selectively, i.e per object level

for google cloud storage, i followed this https://cloud.google.com/storage/docs/access-control/making-data-public

The sad part is that i have to do this iteratively for every file that is linked to by a relative url within a css file. It is tiresome but will get the job done and maintain required privacy

here is a link to the solution in google cloud storage https://cloudworks.dukamneti.co.ke/fonts-failed-load-resource-google-cloud-storage/#contact

๐Ÿ‘คHenry Kuria

Leave a comment