MCPcopy Index your code
hub / github.com/simstudioai/sim / getChatEmbedCSPPolicy

Function getChatEmbedCSPPolicy

apps/sim/lib/core/security/csp.ts:242–252  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

240 * when loaded with `?embed=office`.
241 */
242export function getChatEmbedCSPPolicy(): string {
243 return buildCSPString({
244 ...buildTimeCSPDirectives,
245 'script-src': [...STATIC_SCRIPT_SRC, 'https://appsforoffice.microsoft.com'],
246 'connect-src': [
247 ...(buildTimeCSPDirectives['connect-src'] ?? []),
248 'https://appsforoffice.microsoft.com',
249 ],
250 'frame-ancestors': ['*'],
251 })
252}
253
254/**
255 * Add a source to a specific directive (modifies build-time directives)

Callers 2

headersFunction · 0.90
csp.test.tsFile · 0.90

Calls 1

buildCSPStringFunction · 0.85

Tested by

no test coverage detected