Chrome allow file access from files no longer working (was using to see WebGL/three.js files)?

前端 未结 3 1380
眼角桃花
眼角桃花 2020-12-18 01:04

I was using a Chrome shortcut with allow-file-access-from-files in the target to work on my three.js student project files. But sometime this morning this stopped working an

3条回答
  •  情歌与酒
    2020-12-18 01:18

    Gman's answer is good. If you're in windows environment, and use npm for package management the easiest is to install http-server globally:

    npm install -g http-server

    Then simply run http-server in any of your project directories:

    Eg. d:\my_project> http-server

    Starting up http-server, serving ./ Available on: http:169.254.116.232:8080 http:192.168.88.1:8080 http:192.168.0.7:8080 http:127.0.0.1:8080 Hit CTRL-C to stop the server

    Easy, and no security risk of accidentally leaving your browser open vulnerable.

提交回复
热议问题