(hash = "")
| 9 | export const UI_UPSTREAM = new URL("https://app.opencode.ai") |
| 10 | |
| 11 | export const csp = (hash = "") => |
| 12 | `default-src 'self'; script-src 'self' 'wasm-unsafe-eval'${hash ? ` 'sha256-${hash}'` : ""}; style-src 'self' 'unsafe-inline'; img-src 'self' data: https:; font-src 'self' data:; media-src 'self' data:; connect-src * data:` |
| 13 | export const DEFAULT_CSP = csp() |
| 14 | |
| 15 | export function themePreloadHash(body: string) { |
no outgoing calls
no test coverage detected