I build a web with nextjs 13.5.1 and directus 11.9.2 as my backend. To display content, I’m using SSR so my directus url didn’t exposed to browser.
But, I’m confused with images. To display image, used to https://mydirectusurl/assets/id. But how to do that without exposing directus URL? Is it safe exposing directus URL to browser?
Can you give me sample code? I tried with same code for user profile for example, it works. But for assets, it failed because image should access via https://mydirectusurl/assets/id. Download all assets to client not an option.
– ymysSorry I don't have the code, you can try forwarding the headers you got from the Directus
– ahmad_quvor