-
Notifications
You must be signed in to change notification settings - Fork 5.3k
Closed
Labels
Milestone
Description
In the effort to remove unsafe-eval CSP requirement from Blazor WASM, the mono runtime also needs to be CSP compliant by removing the need for unsafe-eval.
Although issue #59416 has been resolved, the runtime is still not CSP compliant, with the following lines requiring the unsafe-eval CSP:
| result = Function.apply(Function, keys); |
runtime/src/mono/wasm/runtime/method-calls.ts
Line 631 in 0d889f5
| const fn_defn = new Function("__closure", fn_body_template); |
This might not be applicable since it is only for debugging:
runtime/src/mono/wasm/runtime/debug.ts
Line 216 in 0d889f5
| const fn_defn = new Function("proxy", fn_body_template); |
Aragas, keesschollaart81, veikkoeeva, TanayParikh, RyoukoKonpaku and 1 more