Working with Images and a Headless CMS

Hi everyone,

I’m just starting with Cockpit and i want to know, how do you handle images with a headless CMS?
I created a collection and added an image with the image field. Now i want to use it in my HTML Page. If i just put in the url, i get a “connection refused” warning. But how does images work with a headless CMS. Do I have to add the token to my url?

Sorry for such a nooby question.

Thanks