Skip to content

Commit e962c04

Browse files
authored
Merge pull request #5 from shadowthreads/milestone/artifact-store-migration-v1
security: remove dev proxy script and harden server defaults
2 parents 5cac3a3 + 6279c6a commit e962c04

2 files changed

Lines changed: 2 additions & 38 deletions

File tree

server/src/index.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,9 @@ import revisionRoutes from './routes/revision.routes';
2020
import executionRoutes from './routes/execution.routes';
2121
import migrationRoutes from './routes/migration.routes';
2222

23-
console.log("[BOOT] DATABASE_URL =", process.env.DATABASE_URL);
24-
2523
async function bootstrap() {
2624
const app = express();
25+
logger.info('Database configuration loaded');
2726

2827
// ============================================
2928
// 基础中间件
@@ -54,7 +53,7 @@ async function bootstrap() {
5453
callback(null, true);
5554
} else {
5655
logger.warn('CORS blocked', { origin });
57-
callback(null, true); // 开发阶段暂时允许所有
56+
callback(null, false);
5857
}
5958
},
6059
credentials: true,

server/test-proxy.js

Lines changed: 0 additions & 35 deletions
This file was deleted.

0 commit comments

Comments
 (0)