如何让Google Chrome浏览器插件以网页的形式访问文件 [英] How to allow a Google Chrome plugin to access files as webpages

查看:153
本文介绍了如何让Google Chrome浏览器插件以网页的形式访问文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建了一个可以用两种方式查看的网页。


  1. 如果我在本地网络服务器上运行它,地址以127.0.0.1开头


我正在尝试使用此网页的chrome插件。当以第二种方式访问​​页面时,它不起作用。



我发现可以通过手动更改设置来允许插件继续运行网页是文件。然而,这个过程的描述还不清楚,我无法完成它。



我怎样才能使这个工作?

解决方案




点击该箭头标记(它有点小,不那么清晰)在您想要允许的插件左侧,然后检查


允许访问文件URLS

你很好


I made a webpage that I can view in two ways.

  1. If I run it on a local webserver, the beginning of the address starts with 127.0.0.1

  2. Without a webserver, I can load the file in the browser and the address will start with file:///

I have a chrome plugin that I'm trying to use with this webpage. It doesn't work when the page is accessed in the second way.

I read that this can be fixed by manually changing a setting to allow the plugin to still function on webpages that are files. However the description of the process was unclear and I was not able to get it to work.

How can I get this to work?

解决方案

Go to chrome://extensions/

Click on that arrow mark (it's kinda small, and not so clear) to the left of the plugin you want to allow and then check the

Allow access to file URLS

You are good

这篇关于如何让Google Chrome浏览器插件以网页的形式访问文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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