I am using firefox add-on sdk to convert my chrome extension to a firefox addon. But I am getting Content Security Policy: The page's settings blocked the loading of a resource at data:text/html;charset=utf-8
error. I am injecting a local html in an iframe following this link. Any idea how to achieve this? For chrome extension I followed this link.
Asked
Active
Viewed 583 times
3
1 Answers
0
I found a solution that works for me.
I add to my package.json the following line:
"permissions": {
"cross-domain-content": ["https://www.foo.com/"]
},
Where https://www.foo.com you can add the domain or the list of domains that you are accessing.
For more info go to the Cross Domain Content Scripts

Christos Papoulas
- 2,469
- 3
- 27
- 43