Report this

What is the reason for this report?

How to fix: has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.

Posted on April 12, 2023

Hi,

I am hosting a few fonts for my Django application on spaces. They were working ok for a little bit but now I get this error:

has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.

How do I fix this? I have set the CORS policy on Spaces for this bucket as follows:

Origin: https://*.ondigitalocean.app

Allowed Method: GET HEAD

I do not know what to do with allowed headers. Any help would be much appreciated.

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Start building today

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.