fix: add CORS middleware to allow pal-e-production frontend #258
Labels
No labels
domain:backend
domain:devops
domain:frontend
status:approved
status:in-progress
status:needs-fix
status:qa
type:bug
type:devops
type:feature
No milestone
No project
No assignees
1 participant
Due date
No due date set.
Dependencies
No dependencies set.
Reference
ldraney/pal-e-api#258
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Type
Bug
Lineage
Standalone — discovered during gdocs-daily-mcp-remote scoping session while trying to view newly created architecture notes.
Repo
forgejo_admin/pal-e-apiWhat Broke
The pal-e-docs API has no CORS middleware. The pal-e-production frontend (
pal-e-production.tail5b443a.ts.net) makes client-sidefetch()calls to the API (pal-e-docs.tail5b443a.ts.net). Browsers block these cross-origin requests with:Repro Steps
https://pal-e-production.tail5b443a.ts.net/notes/story-gdocs-daily-mobile-daily-reviewpal-e-docs.tail5b443a.ts.netExpected Behavior
API returns proper
Access-Control-Allow-Originheaders. Notes render in the browser.Environment
89f663bAcceptance Criteria
pal-e-production.tail5b443a.ts.netcan fetch frompal-e-docs.tail5b443a.ts.netwithout CORS errorsPALDOCS_ALLOWED_ORIGINS)Related
project-pal-e-platform— platform projectsrc/pal_e_docs/main.py(add CORSMiddleware),src/pal_e_docs/config.py(addallowed_originssetting)