I wrote my Chrome extension primarily using Rust compiled to WebAssembly. How do I allow the wasm module to be loaded using the Manifest v3 format? With Manifest v2, I have this:
"content_security_policy": "script-src 'self' 'wasm-eval'; object-src 'self'",
With Manifest v3, I get an error with this:
"content_security_policy": {
"extension_pages": "script-src 'self' 'wasm-eval'; object-src 'self'"
},
Error
'content_security_policy.extension_pages': Insecure CSP value "'wasm-eval'" in directive 'script-src'.
Could not load manifest.
Without wasm-eval, I get this error:
Uncaught (in promise) CompileError: WebAssembly.instantiateStreaming(): Wasm code generation disallowed by embedder
What can I do to load wasm modules using the Manifest v3 format?