sharing assets between domain and subdomain without sharing with public

I want to put my images in img.mysite.tld hosted in gitlab And use them in my static site mysite.tld & www. mysite.tld, hosted in netlify. But ensure that no other domain can use them like using cors or something else Can you show some light on how to achieve this?

Go to Source
Author: Sk Samim