I have a private container in a storage account that i can access with the help of Azure AD bearer token.
I have to pass a bearer token to my blob storage in order to get the data.
I use these images in a text editor component called 'Quilljs' that parses text and images into raw html content.
The image url itself will be saved in an <img src="url">
, but since i cannot put an authorization header in that url itself. I will get a 404 back.
My idea is to make an REST endpoint in my backend that can build that request with the authorization header for me and relay the data back. The problem is that i don't know if i can override the moment the tries to get his data from that url.
Can i perhaps make a rest call in an tag src url?
What are my options here?
I tried using SAS Tokens but since the token itself is different every time it renews, i cannot save that url into my database.