Report this

What is the reason for this report?

How make CORS works?

Posted on April 12, 2020

I tried to enable CORS to my space for a specific domain. I want to restrict access to images and files to my domain. I setup CORS, my files are setup as public.

But I can access the site from my local computer and other domains. Looks like CORS validation is not working. Any idea?



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!

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.

Hi @Christian3t ,

I found there is already one tutorial for everyone about how to enable CORS policy works.Go here:How to Configure CORS.

Hope this helps you!

Regards, Shiroka

The developer cloud

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

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.