fix: use resizable image MIME types in Accept header for external image fetch by kyrisu · Pull Request #5599 · webstudio-is/webstudio
Navigation Menu
- Notifications You must be signed in to change notification settings
- Fork 1.5k
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters