commit | 787ded1a6c557bf7e7a336977f4496c60abbeaa3 | [log] [tgz] |
---|---|---|
author | plainheart <yhen@all-my-life.cn> | Sat Apr 30 23:20:39 2022 +0800 |
committer | plainheart <yhen@all-my-life.cn> | Sat Apr 30 23:21:48 2022 +0800 |
tree | ca458cbc92d1c41a6e487f2e4bc344c571d886bf | |
parent | a937619cd1e95f2f4caf756527f0c396fa06cae3 [diff] |
fix: allow data:// and blob:// protocols
diff --git a/src/editor/sandbox/index.js b/src/editor/sandbox/index.js index 942413f..56ee418 100644 --- a/src/editor/sandbox/index.js +++ b/src/editor/sandbox/index.js
@@ -40,6 +40,8 @@ `'self'`, `'unsafe-inline'`, `'unsafe-eval'`, + 'data:', + 'blob:', '*.apache.org', '*.jsdelivr.net', '*.jsdelivr.com',