disable server unless explicitly opted in (#7529)

This commit is contained in:
Dax 2026-01-09 16:33:46 -05:00 committed by GitHub
commit 982b71e861
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 194 additions and 49 deletions

View file

@ -2826,6 +2826,10 @@ export namespace Server {
host: "app.opencode.ai",
},
})
response.headers.set(
"Content-Security-Policy",
"default-src 'self'; script-src 'self'; style-src 'self' 'unsafe-inline'; img-src 'self' data: https:; font-src 'self' data:; connect-src 'self'",
)
return response
}) as unknown as Hono,
)