WebAssembly wasm not able to load on Safari Web Extension

Hi, I am having issue with WebAssembly not able to load wasm file on Safari web extension.

It is showing CompileError: Refused to create a WebAssembly object because 'unsafe-eval' or 'wasm-unsafe-eval' is not an allowed source of script in the following Content Security Policy directive: "script-src 'self' 'wasm-unsafe-eval'".

It was working fine 2 month ago, my original CPS is "script-src 'self' 'unsafe-eval'". But now it is not accepting 'unsafe-eval', I also tried 'wasm-unsafe-eval' did not work.

Is there any changes on Safari browser regarding the CSP for WebAssenbly? Please let me know what CPS value will work.

Here is the example code on how I load the WebAssembly wasm file.

fetch('test_wasm_lib.wasm') .then(response => { if (!response.ok) throw new Error('Network response was not ok'); return response.arrayBuffer(); }) .then(bytes => WebAssembly.instantiate(bytes)) .then(results => { // Use your WebAssembly instance here console.log('load wasm success') }) .catch(error => { console.error('Error loading WASM:', error); });

WebAssembly wasm not able to load on Safari Web Extension
 
 
Q