I
I
IliaNeverov2020-07-06 15:12:36
JavaScript
IliaNeverov, 2020-07-06 15:12:36

How to fix errors popping up in the console when inserting a 3d model into a scene using three js?

Hello! Please tell me how to fix these errors popping up in the console when inserting a 3d model into the scene using three js:
three.min.js:771 GET file:///C:/Users/s/Desktop/%D1%81%D0%B0 %D0%B9%D1%82%20%D1%81%20%D0%B4%D0%B6%D0%B0%D0%B2%D0%B0%D1%81%D0%BA%D1%80%D0 %B8%D0%BF%D1%82/3%D0%B4%20%D1%81%D1%86%D0%B5%D0%BD%D0%B0/model/untitled.obj net::ERR_FAILED
and
Access to XMLHttpRequest at 'file:///C:/Users/s/Desktop/%D1%81%D0%B0%D0%B9%D1%82%20%D1%81%20%D0%B4%D0%B6 %D0%B0%D0%B2%D0%B0%D1%81%D0%BA%D1%80%D0%B8%D0%BF%D1%82/3%D0%B4%20%D1%81%D1 %86%D0%B5%D0%BD%D0%B0/model/untitled.obj' from origin 'null' has been blocked by CORS policy: Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome -extension, https.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
McBernar, 2020-07-06
@IliaNeverov

Put the model where your JS code is and load it. Well, the server, of course, must be running.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question