How to add content security policy to firefox extension when using addon sdk?
I am using firefox add-on sdk to convert my chrome extension to firefox addon. But I am getting error Content Security Policy: The page settings blocked the loading of a resource at data:text/html;charset=utf-8
. I am embedding local html in an iframe after this link . Any ideas how to do this? For chrome extension, I followed this link .
+3
source to share
1 answer
I found a solution that works for me.
I will add the following line to my package.json:
"permissions": {
"cross-domain-content": ["https://www.foo.com/"]
},
Where https://www.foo.com you can add the domain or list of domains you are accessing.
For more information, go to Content Scripts for Domains in Domain
0
source to share