403 Bucket don't show images and Access-Control-Allow-Origin in NGINX

I installed CDN with Space Digital Ocean with Tutorial of Digital Ocean.

But, now my images don’t show in website, in CONSOLE of Chrome, I see this: Failed to load resource: the server responded with a status of 403 (Forbidden)

And in others links, this: blocked by CORS policy: No ‘Access-Control-Allow-Origin’ header is present on the requested resource. Origin ‘https://mywebsite ( website example for this ask )’ is therefore not allowed access. (

Please, how I can fix this??

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

Hi sir, I did that but still have some problems of : “net:: ERR_ABORTED 403 (Forbiden)”

I have a Django app with CORS_ORIGIN_ALLOW_ALL = True I have added my website in the CORS Configurations ( http/https). Any hint of how I can solve this ?

Hi, do you try to add the CORS Configurations?

Dashboard --> Space --> Select your Spacename --> Settings --> CORS Configurations --> Add and you can add your website and select just GET.

Let me know.