Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Load a local file in Chrome extension (not in same folder)

My extension allows users to set their own background image on the extension's page. It's completely cool with online files being used; however, it gives me this Not allowed to load local resource: <file name> when using an image somewhere on their computer. Is there a manifest option or something else I'm overlooking to allow this?

I have already tried using the checkbox for "Allow access to file URLs"

like image 216
Rhyono Avatar asked Oct 25 '12 03:10

Rhyono


1 Answers

One thing you may want to try is setting the file:///* permission in manifest.json (it is a little buried in the docs):

"permissions": [
    "file:///*"
],

I remember running across a similar issue before and this was the cause. Happy to troubleshoot further if this doesn't solve it.

like image 75
RocketDonkey Avatar answered Sep 22 '22 09:09

RocketDonkey