bgstaal / multipleWindow3dScene

A quick example of how one can "synchronize" a 3d scene across multiple windows using three.js and localStorage
MIT License
16.44k stars 2.56k forks source link

Cors Policy #28

Closed FaizaanFazal closed 8 months ago

FaizaanFazal commented 8 months ago

How to solve this : Access to script at 'file:///D:/user/Threejs/multipleWindow3dScene-main/main.js' from origin 'null' has been blocked by CORS policy: Cross origin requests are only supported for protocol schemes: http, data, isolated-app, chrome-extension, chrome, https, chrome-untrusted.

ok-coder1 commented 8 months ago

Use the website created by the creator himself: https://bgstaal.github.io/multipleWindow3dScene/

FaizaanFazal commented 8 months ago

I just installed three.js using npm and cors policy issue went away.

SrFortes commented 8 months ago

use cd C:\Program Files\Google\Chrome\Application chrome.exe --disable-site-isolation-trials --disable-web-security --user-data-dir="local-your-path"