fix: use resizable image MIME types in Accept header for external image fetch by kyrisu · Pull Request #5599 · webstudio-is/webstudio

Skip to content

Navigation Menu

Sign in

Appearance settings

Conversation

…ge fetch

When pasting HTML with external image URLs (e.g. Unsplash with auto=format),
the server fetched images with an Accept header including image/avif.
Services performed content negotiation and served AVIF data, which Cloudflare
Image Resizing cannot process as input, causing ERROR 9520.

Add RESIZABLE_IMAGE_MIME_TYPES whitelist limited to Cloudflare-supported
input formats (JPEG, PNG, GIF, WebP, SVG) and use it in the Accept header.

Labels