简体   繁体   English

Chrome扩展程序可以修改用户的主机文件吗?

[英]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.

相关问题 如何修改用户提交的带有Chrome扩展程序的搜索输入中的查询? - How can I modify the query from a user submitted search input with a Chrome extension? 在Chrome扩展程序中,如何从Chrome浏览器中准确检索用户的区域/区域/国家/地区? - In a Chrome Extension, how can I accurately retrieve the user's region/locale/country from their Chrome browser? 如何根据 Chrome 扩展中的用户选项修改 http 请求标头? - How to modify http request headers based on user options in a Chrome extension? chrome扩展程序:在何处/如何托管用户提供的数据? - chrome extension: where/how to host user-contributed data? 如何在带有chrome扩展名的用户文件系统上制作用户可访问文件 - How to make a user-accessible file on the user's filesystem with a chrome extension 用于修改页面脚本的 Chrome 扩展包括和 JS - Chrome extension to modify page's script includes and JS 制作“背景”Chrome扩展程序以修改当前页面的代码 - Make “background” Chrome extension to modify the current page's code Chrome扩展程序无法修改单个页面的dom - Chrome extension can't modify the dom of a single page 在chrome扩展程序或应用程序中获取用户本地系统上目录或文件的完整绝对路径 - getting full absolute path of a directory or file on a user's local system in chrome extension or app Chrome扩展程序修改所选文本框 - Chrome extension modify selected textbox
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM