Report this

What is the reason for this report?

Digitalocean Spaces Hotlink

Posted on November 29, 2018

How is it possible to activate the hotlink for the images or videos? I’m using digital ocean space



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.

I had to go refresh my internet lingo, if by hotlink you mean that you would like to embed an image or video file from spaces from within your own site (for example mydomain.com) you will need to update CORS policies, and you should also enable CDN for SPEED!

  1. Set CORS policies to allow embedding of content from your domain. https://www.digitalocean.com/docs/spaces/how-to/cors/ - you will want to add your exact domain including subdomain and HTTP/HTTPS https://www.mydomain.com and check the GET box

  2. Enable CDN https://www.digitalocean.com/docs/spaces/how-to/enable-cdn/ - _and make sure you are using the CDN URLs for your images and video, not the regular ones.

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.