Is your feature request related to a problem? Please describe.
Some Markdown image URLs are protected by CDN / hotlink protection rules and require a Referer HTTP header to load successfully.
Currently EnrichedMarkdownText downloads remote images internally, so app code cannot pass request headers for those image requests. This makes images fail to render even though the same URL works when requested with the correct Referer.
Describe the solution you'd like
Please add an API for passing headers to remote image requests, for example:
<EnrichedMarkdownText
markdown={markdown}
imageRequestHeaders={{
Referer: 'https://example.com',
}}
/>
Is your feature request related to a problem? Please describe.
Some Markdown image URLs are protected by CDN / hotlink protection rules and require a
RefererHTTP header to load successfully.Currently
EnrichedMarkdownTextdownloads remote images internally, so app code cannot pass request headers for those image requests. This makes images fail to render even though the same URL works when requested with the correctReferer.Describe the solution you'd like
Please add an API for passing headers to remote image requests, for example: