ework-web 0.10.23 → 0.10.24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/index.ts +2 -2
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -128,8 +128,6 @@ async function refreshOpencodeClient(): Promise<void> {
|
|
|
128
128
|
await refreshOpencodeClient();
|
|
129
129
|
setInterval(refreshOpencodeClient, 10_000);
|
|
130
130
|
|
|
131
|
-
void autoWireAllProjects(`http://${cfg.host}:${cfg.port}`);
|
|
132
|
-
|
|
133
131
|
async function autoWireDaemon(projectId: number, origin: string): Promise<void> {
|
|
134
132
|
if (!cfg.autowireActive) {
|
|
135
133
|
log.info("autoWireDaemon: skipped (WORK_AUTOWIRE_ACTIVE=false)", { projectId });
|
|
@@ -181,6 +179,8 @@ async function autoWireAllProjects(origin: string): Promise<void> {
|
|
|
181
179
|
}
|
|
182
180
|
}
|
|
183
181
|
|
|
182
|
+
void autoWireAllProjects(`http://${cfg.host}:${cfg.port}`);
|
|
183
|
+
|
|
184
184
|
const SEC_HEADERS: Record<string, string> = {
|
|
185
185
|
"content-security-policy": `default-src 'self'; script-src 'self'; style-src 'self' 'unsafe-inline'; img-src 'self' data:; connect-src 'self'; object-src 'none'; base-uri 'none'; frame-ancestors 'none'; form-action 'self'`,
|
|
186
186
|
"x-content-type-options": "nosniff",
|