Skip to content

Commit 23e1328

Browse files
committed
revert csp
1 parent 27e7801 commit 23e1328

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

apps/sim/lib/security/csp.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
import { env, getEnv } from '@/lib/env'
2-
import { getBaseUrl } from '@/lib/urls/utils'
1+
import { env, getEnv } from '../env'
32

43
/**
54
* Content Security Policy (CSP) configuration builder
@@ -77,7 +76,7 @@ export const buildTimeCSPDirectives: CSPDirectives = {
7776

7877
'connect-src': [
7978
"'self'",
80-
getBaseUrl(),
79+
env.NEXT_PUBLIC_APP_URL || '',
8180
env.OLLAMA_URL || 'http://localhost:11434',
8281
env.NEXT_PUBLIC_SOCKET_URL || 'http://localhost:3002',
8382
env.NEXT_PUBLIC_SOCKET_URL?.replace('http://', 'ws://').replace('https://', 'wss://') ||

0 commit comments

Comments
 (0)