Skip to content

Commit 11f9bb3

Browse files
committed
chore: remove type check step from CI workflow and update CORS configuration in app
1 parent ecf3fb1 commit 11f9bb3

3 files changed

Lines changed: 5 additions & 3 deletions

File tree

.github/workflows/ci.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,6 @@ jobs:
3636
- name: Lint
3737
run: npm run lint
3838

39-
- name: Type check
40-
run: npm run typecheck
41-
4239
- name: Test
4340
run: npm test
4441

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ npx prisma generate
3636
| ------------------------------------------------------- | ----------------------------------------------------------------------------------------- |
3737
| `PORT` | HTTP port (default 4001) |
3838
| `DATABASE_URL` | PostgreSQL connection string (e.g., `postgresql://user:pass@localhost:5432/auralyze_api`) |
39+
| `CORS_ORIGIN` | Allowed origins for CORS (e.g., `http://localhost:3000` or comma-separated list) |
3940
| `CERBERUS_BASE_URL` | Cerberus IAM host (e.g., `https://cerberus.example.com`) |
4041
| `CERBERUS_CLIENT_ID` | OAuth2 client ID used for token introspection |
4142
| `CERBERUS_CLIENT_SECRET` | OAuth2 client secret used for token introspection |

src/app.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ export function createApp(deps: AppDeps) {
2121
cors({
2222
origin: deps.corsOrigin ?? '*',
2323
credentials: true,
24+
methods: ['GET', 'POST', 'PUT', 'DELETE', 'PATCH', 'OPTIONS'],
25+
allowedHeaders: ['Content-Type', 'Authorization', 'Cookie'],
26+
exposedHeaders: ['Set-Cookie'],
27+
maxAge: 86400, // 24 hours
2428
}),
2529
);
2630
app.use(express.json({ limit: '10mb' }));

0 commit comments

Comments
 (0)