I am using an Express App with Create React App. I want to serve videos for an education website but restrict access to users only logged in.
My understanding is I can use a digital ocean space to serve content through a CDN using an API key. So my server would make the request with the API key.
Then serve the content to the client. What I am not sure about is what is the point of having a CDN if the content is downloaded to the server and sent to the client. Can you have the content go straight from the CDN to the client?
Without having to store the API key in the front end?
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.
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.
Click below to sign up and get $100 of credit to try our products over 60 days!