diff --git a/studio/backend/routes/html_preview.py b/studio/backend/routes/html_preview.py
index e17ae5de53..f30064c4c3 100644
--- a/studio/backend/routes/html_preview.py
+++ b/studio/backend/routes/html_preview.py
@@ -99,39 +99,37 @@ def _build_html_doc(source: str) -> str:
# ```` mirrors the srcdoc fallback so any ````
# without an explicit target opens in a new tab rather than navigating
# the iframe (which would be UX-confusing).
- return (
- ""
- ''
- + source
+ return "" '' + source
+
+
+_PREVIEW_CSP = "; ".join(
+ (
+ "default-src 'none'",
+ # ``script-src 'unsafe-inline'`` enables BOTH ``