mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-12 21:53:00 -06:00
fix(ui): prevent Zod eval under strict Content Security Policy (#113617)
Co-authored-by: Peter Steinberger <steipete@golden-gate.local>
This commit is contained in:
committed by
GitHub
parent
57e2f220de
commit
d2ff17acc3
@@ -13,6 +13,10 @@
|
||||
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png" />
|
||||
<link rel="manifest" href="/manifest.webmanifest" />
|
||||
<script>
|
||||
// Configure Zod before module evaluation so its JIT probe cannot violate strict CSP.
|
||||
globalThis.__zod_globalConfig ??= {};
|
||||
globalThis.__zod_globalConfig.jitless = true;
|
||||
|
||||
(function () {
|
||||
var THEMES = { claw: 1, knot: 1, dash: 1 };
|
||||
var MODES = { system: 1, light: 1, dark: 1 };
|
||||
|
||||
Reference in New Issue
Block a user