Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to allow a Google Chrome plugin to access files as webpages

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?

like image 577
node ninja Avatar asked Jan 19 '12 03:01

node ninja


People also ask

Can a Chrome extension access file system?

For example, apps or extensions can allow users to upload files to a website. Allows app or extension to create, read, navigate, and write to the user's local file system at a user-selected location.

How do I allow access to URLs in Chrome?

If you open a Chrome browser window and navigate to chrome://extensions, you may notice the option "Allow access to file URLs" underneath of the LastPass extension. This option is mostly for web developers. Checking this option allows LastPass to login and fill forms for local files such as file:///C:/dev/test.html.


1 Answers

Go to chrome://extensions/

enter image description here

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

like image 172
codeAnand Avatar answered Sep 22 '22 01:09

codeAnand