Running three js without local server?

20 Views Asked by At

I am currently working with WPF project. My task is to display 3d models that generates in real-time with the help of CefSharp.

We already have the same project but in 2d. It only uses vanilla JS and svg. With 3d, I will be using threeJS. My problem is that, I cant just open the html file directly since it uses ESmodules and will be blocked by CORS.

My question is, Is it possible to disable CORS in CefSharp? I did the same with chrome and it worked. If not, how can I set up a local server in CefSharp that will execute in real time and will work with different clients? Thank you so much!

0

There are 0 best solutions below