mirror of
https://github.com/PR0M3TH3AN/bitgate.git
synced 2026-11-06 05:21:10 +00:00
fix(site): move the demo module out of the page to satisfy CSP
script-src 'self' with no 'unsafe-inline' blocks inline module scripts, so the demo initialized nothing on the deployed site while working perfectly locally — the dev server sends no CSP, so only the real deployment showed it. Extracted to assets/demo.js rather than relaxing the policy. Loosening CSP for a page that renders moderation decisions would be the wrong trade.
This commit is contained in:
1 parent
b24bf3955d
commit
015f9c3ad4
3 files changed
+155
-154
No files matched your search
@@ -12,3 +12,5 @@ coverage/
|
||||
|
||||
# Built site output (Vercel builds it)
|
||||
packages/site/dist/
|
||||
.vercel
|
||||
.env*
|
||||
Reference in new issue
Block a user