dynamic change of src #3674
Unanswered
AgustinMaurel
asked this question in
Q&A
Replies: 2 comments 1 reply
-
You need to set up your server to supply CORS headers that allow your origin to access the file from JS. This isn't necessary for images (since the browser handles those), but is necessary for GLBs. |
Beta Was this translation helpful? Give feedback.
1 reply
-
did you manage to figure this out? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
hello i am having the following problem when i want to change the src of the model viewer, by means of a button it changes a local state which is heard by a useeffect and is updated in the viewer but with the first one it renders well. when i change it it does not show me the new model and i get the following error, the models are saved in an ipfs, i am doing it with Javascript / React. Thanks !

Beta Was this translation helpful? Give feedback.
All reactions