Wordpress Plugin - External Links to Amazon S3 - File Won't Load

Hello,

I’m using the Babylon Wordpress plugin to display 3D models on my website. The instructions mention that external links (to files not hosted on your website) can be used, however, the links I’m using to the glb files on my Amazon S3 account don’t work. I’m almost positive I have all of the permissions set correctly (to make the files publicly accessible), so I don’t think this is the issue.

Any ideas or help would be greatly appreciated, Thanks!

Matt

I think @labris may be the one most familiar with the Wordpress plugin. Maybe he can help us out?

Hello and welcome!

The first thing is to quickly check if your model is accessible is to try to open its URL from the browser.
If it doesn’t - probably there is no access or URL is not correct.
The second thing is to check whether your code works with other external links, for example https://models.babylonjs.com/CornellBox/cornellBox.glb

See also code example here - Cornell Box on White Background – Babylon.js 3D WordPress Plugin

1 Like

Hi @labris,

The file downloads from the S3 link.

I’ll try this html code, I was using shortcodes.

Will update later.

Thanks.

Nope, the code didn’t work.

Could you provide the link to your file?

Here’s a link to the page I’m trying to display it on. The first example is hosted on the same site, so it loads properly.
https://members.nehssie.com/site-000271-demo/

Link to my glb file:
https://members.nehssie.com/wp-content/uploads/2022/04/000271-snakewall.glb

Also, I posted the code to another site, it won’t load, even with your file.

https://astraeusaerials.com/3d-model-test/

When I use the link to your GLB file I have errors:

When I upload this file to the site it is OK - https://igiuk.com/babylon-3d-wordpress/3d-examples/snake-wall/

Probably they may be accessible not for all types of requests or there are CORS problems for some reason.

A CORS issue makes sense.

Is there a way to resolve this? I’m wondering if it might be a WordFence conflict.

There is definitely a worth to check Wordfence settings (or disable it completely to be sure).

Well, it’s not Wordfence or any other plugin, I disabled them all. I’m not sure what else it could be.

If it works at Site 000271 Demo – Nehssie use can use it.

Have you set your CORS headers on AWS too ? There is a section per bucket for that

The file that loads on that page also resides on the domain. It’s anytime I try to get a file to load from any other domain, S3 or another Wordpress site.

I believe so, I have set permissions on both buckets and files… Keep in mind that even files posted on other external Wordpress sites aren’t loading for me either, so it might be something else entirely.

Okay just double check the CORS section is done too, looks something like this:

1 Like

Where am I checking this?

It’s in the permissions section of a bucket if you scroll down some

This code wasn’t there, but after I added it, I’m still not getting a result.
Also keep in mind that the file from
https://models.babylonjs.com/CornellBox/cornellBox.glb
won’t load on my site either.