如何检查是否允许文件访问从文件启用? [英] How can I check if --allow-file-access-from-files is enabled or not?

查看:124
本文介绍了如何检查是否允许文件访问从文件启用?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何检查 - allow-file-access-from-files 是否已启用?在cmd上有任何命令或chrome配置上的复选框?

How can I check if --allow-file-access-from-files is enabled or not? Is there any command on cmd or a checkbox on chrome's configuration?

我按照步骤启用 - allow-file-access-文件,但我不知道如果我真的做到了。

I followed the steps to enable --allow-file-access-from-files but I am not sure if I really did it. And after I finish my work, how can I disable it to prevent security issues?

推荐答案

您可以查看Chrome的标记目前正在使用,请访问 chrome:// version

You can view the flags that Chrome is currently using by visiting chrome://version

但是,此标志不安全。根据您的使用情况,您应该考虑类似本地服务器使用 python -m SimpleHTTPServer 8000 来提供您的页面进行测试。

However, this flag is not safe. Depending on your use case, you should consider something like a local server using python -m SimpleHTTPServer 8000 to serve your page for testing.

这篇关于如何检查是否允许文件访问从文件启用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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