We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 27e7801 commit 23e1328Copy full SHA for 23e1328
1 file changed
apps/sim/lib/security/csp.ts
@@ -1,5 +1,4 @@
1
-import { env, getEnv } from '@/lib/env'
2
-import { getBaseUrl } from '@/lib/urls/utils'
+import { env, getEnv } from '../env'
3
4
/**
5
* Content Security Policy (CSP) configuration builder
@@ -77,7 +76,7 @@ export const buildTimeCSPDirectives: CSPDirectives = {
77
76
78
'connect-src': [
79
"'self'",
80
- getBaseUrl(),
+ env.NEXT_PUBLIC_APP_URL || '',
81
env.OLLAMA_URL || 'http://localhost:11434',
82
env.NEXT_PUBLIC_SOCKET_URL || 'http://localhost:3002',
83
env.NEXT_PUBLIC_SOCKET_URL?.replace('http://', 'ws://').replace('https://', 'wss://') ||
0 commit comments