()
| 240 | * when loaded with `?embed=office`. |
| 241 | */ |
| 242 | export 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) |
no test coverage detected