Chrome允许从文件访问文件不再工作(正在使用查看WebGL / three.js文件)? [英] Chrome allow file access from files no longer working (was using to see WebGL/three.js files)?

查看:98
本文介绍了Chrome允许从文件访问文件不再工作(正在使用查看WebGL / three.js文件)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用的Chrome快捷方式使用目标中的文件的allow-file-access-access来处理我的three.js学生项目文件。但今天早上有一段时间停止工作,Chrome已经更新了。我重新找到了捷径,但没有喜悦。



我正在做的项目的一部分是构建可在通用浏览器中工作的three.js动画(为此我选择了Chrome)。



是否有任何方式让Chrome浏览器再次访问文件?

谢谢。

解决方案

我想出的答案是使用Firefox而不是Chrome来更改安全策略,详见 https://github.com/mrdoob/three.js/wiki/How-to-run-things-locally



不是一个完美的答案,但是在截稿日期即将到来之际,对于我来说,尝试Chrome的各种变体,尝试Wamp和Mongoose都无法正常工作,这对我来说是最好的可行答案。如果我有更多的时间,我会研究如何使用Python或可能node.js,因为我已经看到它多次提到是更快的选择。

gman说的是真实的,使用Chrome标志(并且改变Firefox的安全策略)的确会带来很大的安全风险。但只有当您使用该快捷方式(以及它的选项卡等)才能访问您自己的本地文件。我一直很小心不要在互联网上使用它,但如果你不能严格对待自己,不要使用这种方法。



理想情况下,我会建议开始任何带有node.js的项目。


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 and it appeared Chrome had been updated. I redid the shortcut but no joy.

Part of the project I'm doing is building three.js animation that works in a common browser (for which I chose Chrome).

Is there any way to get Chrome to allow file access again?

Thanks.

解决方案

The answer I came up with was to use Firefox instead of Chrome changing the security policy as detailed in https://github.com/mrdoob/three.js/wiki/How-to-run-things-locally

Not a perfect answer but with a deadline looming it's the best workable answer for me right now as trying different variations of Chrome, trying Wamp and also Mongoose didn't work. If I had more time I would work out how to use Python or probably node.js as I've seen it mentioned a number of times as being the faster option.

What gman stated is true, using the Chrome flag (and changing Firefox's security policy) does create a big security risk. But only if you use that shortcut (and it's tabs etc.) for anything other than accessing your own local files. I've been scrupulous about not using it for the internet but don't use this method if you can't be strict with yourself.

Ideally I'd recommend beginning any project with node.js.

这篇关于Chrome允许从文件访问文件不再工作(正在使用查看WebGL / three.js文件)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆