[英]Can a Chrome Extension modify a user's host file?
Our Team Members frequently test and monitor a web application that we host on multiple servers. 我们的团队成员经常测试和监视我们托管在多台服务器上的Web应用程序。
Our environment is such that issues can be present on some servers but not others so we often need to test against multiple servers. 我们的环境使得问题可以在某些服务器上出现,而在其他服务器上则没有,因此我们经常需要针对多台服务器进行测试。
Currently, we facilitate this testing by manually changing entries in our hosts file so that we connect to a different server. 当前,我们通过手动更改主机文件中的条目来简化此测试,以便我们连接到其他服务器。
Our company hosts an enterprise Google Chrome extension that is available to and used only by our Team Members. 我们公司托管企业Google Chrome扩展程序,该扩展程序仅供我们的团队成员使用。
Is it possible for our Chrome extension to access and edit the hosts files for us? Chrome扩展程序是否可以为我们访问和编辑主机文件?
The fileSystem looks promising but I cant find any information on it regarding this type of usage. fileSystem看起来很有前途,但是我找不到有关这种用法的任何信息。
This will all be run in a trusted environment where we have access to control any registry entries that might need to be set to allow this type of access 所有这些都将在受信任的环境中运行,在该环境中,我们可以控制可能需要设置为允许这种类型的访问的任何注册表项
仅当您开发一个简单的本机应用程序才有可能,该应用程序根据扩展程序通过nativeMessaging API发出的请求更改主机文件。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.