Skip to content

Commit f59b0c1

Browse files
committed
Add CSP for spotlight
1 parent a27721f commit f59b0c1

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

app/entry.server.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,10 @@ async function handleRequest(...args: DocRequestArgs) {
6868
'connect-src': [
6969
MODE === 'development' ? 'ws:' : undefined,
7070
process.env.SENTRY_DSN ? '*.sentry.io' : undefined,
71+
// Spotlight (SSE to the sidecar)
72+
MODE === 'development'
73+
? 'http://localhost:8969'
74+
: undefined,
7175
"'self'",
7276
],
7377
'font-src': ["'self'"],

0 commit comments

Comments
 (0)