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

October 7, 2018 1.4k views
CDN Nginx LAMP Stack WordPress Ubuntu 18.04

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??

2 Answers

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.

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

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

Have another answer? Share your knowledge.