Send a CSP and security headers from the frontend's nginx
script-src admits the bundle and the pre-paint theme script by hash, with no unsafe-inline or unsafe-eval; style-src keeps unsafe-inline for the <style> elements Monaco, Radix and the toasts insert. frame-ancestors 'self', nosniff and strict-origin-when-cross-origin go with it, and the Dockerfile adds the API origin to connect-src when the bundle calls one elsewhere. Zod runs jitless so its eval probe is not reported on every page. The embed widget keeps allow-same-origin: the demo's weather map does not render without it; the comment now says so and what it costs.
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
// First: it configures Zod before any module builds a schema.
|
||||
import "./lib/zodConfig"
|
||||
import {
|
||||
MutationCache,
|
||||
QueryCache,
|
||||
|
||||
Reference in New Issue
Block a user