humanmade / S3-Uploads

The WordPress Plugin to Store Uploads on Amazon S3
1.92k stars 389 forks source link

SVGs failing to load with elementor ICON components #665

Open cgomezhumm opened 6 months ago

cgomezhumm commented 6 months ago

Hi guys elementor which is very well known in the wordpress world released a version 3.19.1 that is now breaking SVG files that are hosted on S3 and retrieved by s3-uploads.

We tested on a normal normal server setup without s3-uploads and SVGs work correctly so elementor support team are pointing to something wrong in this plugin (I doubt it).

Has anyone else have a similar setup and can point us in the right direction? thanks!

Gadzhev commented 5 months ago

@cgomezhumm we also experienced this issue and wrote a small plugin that resolves it. The origin of the issue is that:

Here's the plugin if you want to give it a try: https://github.com/Web-Grow-Studio/elementor-s3-uploads-support.

You might also update the CORS policy of your S3 Origin to return the Access-Control-Allow-Origin response header if you want the icon to also appear in the Elementor Icon Control itself.

cgomezhumm commented 5 months ago

Hi @Gadzhev the issue was resolved by elementor in version 3.20 but thanks for the recommendation!