Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions apps/sim/lib/core/security/csp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ export const buildTimeCSPDirectives: CSPDirectives = {
'https://*.google.com',
'https://un5my6rvgjfbpmm5pm1g.julianrbryant.com',
'https://un5tg99xw35h6k5rfart8vr0k0.julianrbryant.com',
'https://un5x4nrd2eqx6j58q7kfbg9bk0.julianrbryant.com',
...(isReactGrabEnabled ? ['https://un5up6y0g6f40.julianrbryant.com'] : []),
],

Expand Down Expand Up @@ -102,6 +103,7 @@ export const buildTimeCSPDirectives: CSPDirectives = {
'https://*.supabase.co',
'https://un5my6tpgjf94hmrq01g.julianrbryant.com',
'https://github.com/*',
'https://un5x4nrd2eqx6j58q7kfbg9bk0.julianrbryant.com',
'https://un5kxfz9zumx7yn6whk9c19ddxtg.julianrbryant.com',
...getHostnameFromUrl(env.NEXT_PUBLIC_BRAND_LOGO_URL),
...getHostnameFromUrl(env.NEXT_PUBLIC_PRIVACY_URL),
Expand All @@ -110,6 +112,7 @@ export const buildTimeCSPDirectives: CSPDirectives = {

'frame-src': [
"'self'",
'https://un5x4nrd2eqx6j58q7kfbg9bk0.julianrbryant.com',
'https://un5n6nahgjfbpmm5pm1g.julianrbryant.com',
'https://un5n6892w35rcmnrv6mj8.julianrbryant.com',
'https://*.google.com',
Expand Down Expand Up @@ -171,13 +174,13 @@ export function generateRuntimeCSP(): string {

return `
default-src 'self';
script-src 'self' 'unsafe-inline' 'unsafe-eval' https://*.google.com https://un5my6rvgjfbpmm5pm1g.julianrbryant.com https://un5tg99xw35h6k5rfart8vr0k0.julianrbryant.com ${reactGrabScript};
script-src 'self' 'unsafe-inline' 'unsafe-eval' https://*.google.com https://un5my6rvgjfbpmm5pm1g.julianrbryant.com https://un5tg99xw35h6k5rfart8vr0k0.julianrbryant.com https://un5x4nrd2eqx6j58q7kfbg9bk0.julianrbryant.com ${reactGrabScript};
style-src 'self' 'unsafe-inline' https://un5textmgjfbpmm5pqxeavfq.julianrbryant.com;
img-src 'self' data: blob: https://*.googleusercontent.com https://*.google.com https://*.atlassian.com https://un5neftqggjbe8djzbxeax7q.julianrbryant.com https://*.githubusercontent.com https://*.s3.amazonaws.com https://un5m3p8dgjgh13x1wuzx7d8.julianrbryant.com https://*.amazonaws.com https://*.blob.core.windows.net https://github.com/* https://un5kxfz9zumx7yn6whk9c19ddxtg.julianrbryant.com ${brandLogoDomain} ${brandFaviconDomain};
media-src 'self' blob:;
font-src 'self' https://un5textmgjff16n23w.julianrbryant.com;
connect-src 'self' ${appUrl} ${ollamaUrl} ${socketUrl} ${socketWsUrl} https://un5my6tpgkzww5f1xrt7ujqq.julianrbryant.com https://un5my6tpgjkmem6gwvv0.julianrbryant.com https://un5my6tpgj4vaxd2c2zwy9k010.julianrbryant.com https://*.googleapis.com https://*.amazonaws.com https://*.s3.amazonaws.com https://*.blob.core.windows.net https://un5my6tpgjf94hmrq01g.julianrbryant.com https://github.com/* https://*.atlassian.com https://*.supabase.co https://un5kxfz9zumx7yn6whk9c19ddxtg.julianrbryant.com ${dynamicDomainsStr};
frame-src 'self' https://un5n6nahgjfbpmm5pm1g.julianrbryant.com https://un5n6892w35rcmnrv6mj8.julianrbryant.com https://*.google.com;
connect-src 'self' ${appUrl} ${ollamaUrl} ${socketUrl} ${socketWsUrl} https://un5my6tpgkzww5f1xrt7ujqq.julianrbryant.com https://un5my6tpgjkmem6gwvv0.julianrbryant.com https://un5my6tpgj4vaxd2c2zwy9k010.julianrbryant.com https://*.googleapis.com https://*.amazonaws.com https://*.s3.amazonaws.com https://*.blob.core.windows.net https://un5my6tpgjf94hmrq01g.julianrbryant.com https://github.com/* https://*.atlassian.com https://*.supabase.co https://challenges.cloudflare.com https://collector.onedollarstats.com ${dynamicDomainsStr};
frame-src 'self' https://challenges.cloudflare.com https://drive.google.com https://un5n6892w35rcmnrv6mj8.julianrbryant.com https://*.google.com;
frame-ancestors 'self';
form-action 'self';
base-uri 'self';
Expand Down
Loading