"Access to fetch" CORS error due to an unrelated HDRI asset #2894
Unanswered
ryan-j-parker
asked this question in
Q&A
Replies: 0 comments
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.
-
Hi all, I have an R3F component in my portfolio site that renders live previews of my past projects inside an iframe that is positioned in front of a GLTF model of a CRT television. Clicking on the dials cycles through the projects. When it works, it looks like this:
I'm not using any environment files in my canvas, but I'm getting an error that I haven't seen before, and it's breaking the site at that particular route.
I'm pretty new to web development and Three.js, so please excuse ignorance on my part. The site is built with React and all assets are hosted locally, and I'm not sure why this is happening. I've run an npm update, but the error persists.
Here's the code where I'm using the GLTF:
And here's the R3F scene where I'm using it:
Is the error coming from a dependency, or is it something local? I'm currently looking for a job, so I want to have a working portfolio site. I would be super grateful for any solutions. Thank you!!
Beta Was this translation helpful? Give feedback.
All reactions