Skip to content

Commit de04157

Browse files
Copilothotlong
andcommitted
fix: tighten CSP by removing unsafe-eval (not needed in production)
Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
1 parent 5e7be70 commit de04157

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

apps/console/index.html

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,13 @@
22
<html lang="en">
33
<head>
44
<meta charset="UTF-8" />
5-
<meta http-equiv="Content-Security-Policy" content="default-src 'self'; script-src 'self' 'unsafe-inline' 'unsafe-eval'; style-src 'self' 'unsafe-inline'; img-src 'self' data: blob: https:; font-src 'self' data:; connect-src 'self' ws: wss: http://localhost:* https://*.objectstack.io https://*.sentry.io; worker-src 'self' blob:; frame-src 'self';" />
5+
<!--
6+
Content Security Policy (CSP)
7+
- 'unsafe-inline' is required for the process polyfill below and Tailwind/Radix inline styles.
8+
- For stricter CSP, serve headers via your web server (see docs/deployment.md) and use
9+
nonces or hashes instead of 'unsafe-inline'.
10+
-->
11+
<meta http-equiv="Content-Security-Policy" content="default-src 'self'; script-src 'self' 'unsafe-inline'; style-src 'self' 'unsafe-inline'; img-src 'self' data: blob: https:; font-src 'self' data:; connect-src 'self' ws: wss: http://localhost:* https://*.objectstack.io https://*.sentry.io; worker-src 'self' blob:; frame-src 'self';" />
612
<link rel="icon" type="image/svg+xml" href="/vite.svg" id="favicon" />
713
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
814
<title>ObjectStack Console - ObjectUI</title>

0 commit comments

Comments
 (0)