mirror of
https://gitea.toothfairyai.com/ToothFairyAI/tf_code.git
synced 2026-03-31 22:32:28 +00:00
fix(app): terminal improvements - focus, rename, error state, CSP (#9700)
This commit is contained in:
committed by
GitHub
parent
259b2a3c2d
commit
87d91c29e2
@@ -499,6 +499,7 @@ export namespace Server {
|
||||
)
|
||||
.all("/*", async (c) => {
|
||||
const path = c.req.path
|
||||
|
||||
const response = await proxy(`https://app.opencode.ai${path}`, {
|
||||
...c.req,
|
||||
headers: {
|
||||
@@ -508,7 +509,7 @@ export namespace Server {
|
||||
})
|
||||
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'",
|
||||
"default-src 'self'; script-src 'self' 'wasm-unsafe-eval'; style-src 'self' 'unsafe-inline'; img-src 'self' data: https:; font-src 'self' data:; connect-src 'self' data:",
|
||||
)
|
||||
return response
|
||||
}) as unknown as Hono,
|
||||
|
||||
Reference in New Issue
Block a user