Video poster image: CORS issue
gregrickaby opened this issue · 0 comments
gregrickaby commented
I refactored the <video>
player to support a poster
attribute, which points at https://external-preview.redd.it/
. Unfortuntely, that URL throws CORS errors:
Access to image at 'https://external-preview.redd.it/_1TOYrQfE2OdJEzynRMOII_9sckKh14T1DYdf07CjoQ.png?width=320&crop=smart&format=pjpg&auto=webp&s=794a4499f058e3a5be291ce690870eb2e80b6dcc' from origin 'https://reddit-image-viewer.vercel.app' has been blocked by CORS policy: The 'Access-Control-Allow-Origin'
- Use a different URL for the poster image