Reputation: 446
Trying to port some Chrome extension and getting this Security Error: Content at "http://example.com" may not load or link to "moz-extension://04d69802-c26f-47ae-86f2-d54650455e5a/blocks/indicators/__icon/indicators__icon-tweet.png"
(function () {
'use strict';
var PATHS = {
TWITTER: chrome.extension.getURL("blocks/indicators/__icon/indicators__icon-tweet.png")
};
})();
In manifest.json this path is in web_accessible_resources.
Upvotes: 1
Views: 2586
Reputation: 446
To get rid of this error, full path should be provided.
"web_accessible_resources": [
"blocks/indicators/__icon/indicators__icon-tweet.png"
]
No "blocks/indicators/*
.
Upvotes: 3