mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-04 10:24:02 +00:00
Every /api response, including errors, partial responses, Host refusals and unknown routes, now carries a sandboxing Content-Security-Policy and X-Content-Type-Options: nosniff on the dev and preview servers. Vite's server and preview headers only reach the documents and assets it serves itself, so a small plugin sets them ahead of the Host check. A route's own policy is sent as an additional policy rather than replacing it.