fix(api): allow CORS PUT/DELETE preflights - #686
Conversation
|
Note Gittensory Gate skippedPR closed before full evaluation. No late first comment was created.
💰 Earn for open-source contributions like this. Gittensor lets GitHub contributors earn for the work they already do — register to start earning →. Checked by Gittensory, a quiet PR intelligence layer for OSS maintainers. |
|
gittensory · advisory review Reviewed 2 changed file(s) — two independent AI reviewers. Suggested action: ✅ Safe to merge — both reviewers found no blocking issues. Reviewer A · Suggestions
Worth double-checking
Reviewer B · No blocking issues spotted. |
|
Superagent didn't find any vulnerabilities or security issues in this PR. |
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
gittensory-ui | dc40e8a | Commit Preview URL Branch Preview URL |
Jun 14 2026, 02:15 PM |
Motivation
PUTandDELETEwere blocked because the global CORS response only advertisedGET, POST, OPTIONS, preventing dashboard clients from reaching those endpoints.Description
PUTandDELETEto theAccess-Control-Allow-Methodsheader insrc/api/routes.tsso preflights for maintainer AI routes succeed.test/integration/api.test.tsthat the CORSaccess-control-allow-methodsincludesPUT/DELETEand thatOPTIONSpreflights for/v1/repos/:owner/:repo/ai-reviewand/v1/repos/:owner/:repo/ai-keyreturn204from an allowed origin.Testing
npx vitest run test/integration/api.test.tsand the integration suite passed (all tests passed).npx vitest run test/unit/routes-ai-byok.test.tsand the AI BYOK route unit tests passed (all tests passed).Codex Task