Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/simstudioai/sim
/ csp.test.ts
File
csp.test.ts
apps/sim/lib/core/security/csp.test.ts:None–None ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1
import
{ createEnvMock, envFlagsMock } from
'@sim/testing'
2
import
{ afterEach, describe, expect, it, vi } from
'vitest'
3
4
vi.mock(
'@/lib/core/config/env'
, () =>
Callers
nothing calls this directly
Calls
8
createEnvMock
Function · 0.90
buildCSPString
Function · 0.90
getMainCSPPolicy
Function · 0.90
getWorkflowExecutionCSPPolicy
Function · 0.90
generateRuntimeCSP
Function · 0.90
addCSPSource
Function · 0.90
removeCSPSource
Function · 0.90
getChatEmbedCSPPolicy
Function · 0.90
Tested by
no test coverage detected