Skip to content

A one-of-a-kind resume builder that keeps your privacy in mind. Completely secure, customizable, portable, open-source and free forever. Try it out today!

fix(web): stop zod's eval probe from reporting a CSP violation

Amruth Pillai593a970a2939
diff --git a/apps/web/index.html b/apps/web/index.html
index a6b765b88..b32a50709 100644
--- a/apps/web/index.html
+++ b/apps/web/index.html
@@ -19,6 +19,11 @@
}
})();
</script>
+ <!-- The CSP has no 'unsafe-eval', so zod can't compile its parsers. Turning that off before any module loads also
+ skips zod's `new Function` probe, which the browser reports as a CSP violation even though zod catches it. -->
+ <script>
+ globalThis.__zod_globalConfig = { jitless: true };
+ </script>
<meta name="application-name" content="Reactive Resume" />
<meta name="mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-capable" content="yes" />