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

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

问题描述

我在目标中使用带有 allow-file-access-from-files 的 Chrome 快捷方式来处理我的 Three.js 学生项目文件.但是今天早上的某个时候它停止工作了,看来 Chrome 已经更新了.我重做了捷径,但没有快乐.

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.

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

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

有什么办法可以让 Chrome 再次允许访问文件?

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

谢谢.

推荐答案

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

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

不是一个完美的答案,但随着最后期限的临近,它现在对我来说是最好的可行答案,因为尝试了 Chrome 的不同变体,尝试 Wamp 和 Mongoose 都没有奏效.如果我有更多时间,我会研究如何使用 Python 或 node.js,因为我已经看到它多次提到是更快的选择.

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.

gman 所说的是真的,使用 Chrome 标志(并更改 Firefox 的安全策略)确实会带来很大的安全风险.但前提是您将该快捷方式(以及它的选项卡等)用于访问您自己的本地文件以外的任何其他用途.我一直很谨慎,不把它用于互联网,但如果你不能严格要求自己,请不要使用这种方法.

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.

理想情况下,我建议使用 node.js 开始任何项目.

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

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

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