搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

Learn More

EvalError: call to eval() blocked by CSP in Mozilla firefox extention

  • 2 回覆
  • 0 有這個問題
  • 45 次檢視
  • 最近回覆由 James

more options

My chrome extension is working fine and i want to make it compatible with Firefox as well. In the extension i have used eval method that is throwing error "EvalError: call to eval() blocked by CSP".

I also tried to add below configuration in the manifest 3 file but still getting the CSP issue. ('wasm-unsafe-eval' is also not working.)

 "content_security_policy": {
   "extension_pages": "script-src 'self' 'unsafe-eval'"
 }
My chrome extension is working fine and i want to make it compatible with Firefox as well. In the extension i have used eval method that is throwing error "EvalError: call to eval() blocked by CSP". I also tried to add below configuration in the manifest 3 file but still getting the CSP issue. ('wasm-unsafe-eval' is also not working.) "content_security_policy": { "extension_pages": "script-src 'self' 'unsafe-eval'" }

所有回覆 (2)

more options
more options

Dropa said

Maybe contact the Chrome Extension developer to make one for Firefox is what would have to be done here.

So you want the OP to contact himself about how to make a Chrome extension work on Firefox?

You need to focus on Quality and not Quantity as you have been doing with posting a lot in the last couple days.