Jadon-Jesse / gameJam

Repo to hold gameJam files
1 stars 0 forks source link

Chrome model import error: "Failed to load resource" #6

Closed Jadon-Jesse closed 3 years ago

Jadon-Jesse commented 4 years ago

Need to figure out how to properly load models on chrome using webpack

Jadon-Jesse commented 3 years ago

Luke the legend:

So basically what's happening is the origin of the file differs from the html's origin. So chrome is blocking it. We have a few ways around that: ....

  1. use vs code's live server. Starts a server in the build folder, thus all requests are from the same origin