-
Notifications
You must be signed in to change notification settings - Fork 79
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add hook for WebAssembly using 'wasm-unsafe-eval' (#293)
This change defines a new keyword 'wasm-unsafe-eval' for the script-src directive, and a new algorithm to gate WebAssembly compilation/instantiation behind Content Security Policy. The algorithm allows WebAssembly if one of the following is true: (i) there is no script-src nor default-src directive, (ii) the effective script-src/default-src specifies 'unsafe-eval', (iii) the effective script-src/default-src specifies 'wasm-unsafe-eval'.
- Loading branch information
Showing
1 changed file
with
88 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters