Replies: 3 comments 9 replies
-
I guess is not related to this project itself, but Chromium. I've ended up with a similar message in this toy project of mine and I found this: https://bugs.chromium.org/p/chromium/issues/detail?id=1173354 The good thing is that it is being actively looked at 👀 |
Beta Was this translation helpful? Give feedback.
-
Hey @brunoluiz @blujedis @Animeshz @Cyclip @Yharooer, did anyone of you find a fix for the problem? We tried it using the following CSP: "content_security_policy": {
"extension_pages": "script-src 'self' blob; wasm-unsafe-eval; object-src 'self';"
} This leads to the error:
Help would be appreciated |
Beta Was this translation helpful? Give feedback.
-
I have been trying to get ffmpeg to work with Manifest V3 for some time, and recently I have succeeded in getting it to work anyway. The CSP settings in Manifest V3 are as follows: "content_security_policy": {
"extension_pages": "script-src 'self' 'wasm-unsafe-eval'; object-src 'self';",
"sandbox": "sandbox allow-scripts allow-forms allow-popups allow-modals; script-src 'self' 'unsafe-inline' 'unsafe-eval' 'wasm-unsafe-eval'; child-src 'self';"
} |
Beta Was this translation helpful? Give feedback.
-
I've been trying to get ffmpeg.wasm working on a chrome extension with manifest v3. Due to content security policy, I think I have to run ffmpeg.wasm from within a sandbox so I can add
'unsafe-inline
and'unsafe-eval
to the CSP. I have my sandbox running inside an iframe. Does anyone know the required set up to get ffmpeg.wasm running on manifest v3?I tried to load ffmpeg.wasm using
but then on
ffmpeg.load()
I get the following error three times:I tried to change the CSP settings using the
csp
attribute on theiframe
element and I addedblob:
. However then instead of seeing the above message three times, now I only see it two times. Does anyone know if I am missing setting the CSP somewhere?I can get around this by adding this to the following to my html:
If I add this it seems to load successfully, however then I get the following error:
I've tried adding
unsafe-eval
andwasm-eval
to thecsp
attribute on the iframe but I had no luck. I also tried adding these to the CSP inmanifest.json
but again I wasn't about to change anything.I have the feeling I'm not setting the CSP correctly in the right places. Has anyone had any luck getting ffmpeg.wasm on manifest v3 or does anyone have any insights?
Any help or insight would be much appreciated; I've been struggling with this for a while.
Beta Was this translation helpful? Give feedback.
All reactions