mirror of
https://github.com/open-webui/mcpo.git
synced 2026-11-05 01:27:39 +00:00
[PR #125] [CLOSED] refactor: Extract CORS middleware setup to a reusable function #181
Labels
No labels
bug
can't reproduce
documentation
enhancement
good first issue
help wanted
invalid
pull-request
question
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
open-webui/mcpo#181
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?
📋 Pull Request Information
Original PR: https://github.com/open-webui/mcpo/pull/125
Author: @MartinPSDev
Created: 5/9/2025
Status: ❌ Closed
Base:
dev← Head:fix/error-handling-enhancement📝 Commits (4)
e37d0ebMerge pull request #108 from open-webui/devb978f2arefactor: Extract CORS middleware setup to a reusable functionb585455docs: update CHANGELOG.md with CORS middleware refactor759775arefactor: Add get_optional_attr helper function for consistent attribute access📊 Changes
2 files changed (+26 additions, -27 deletions)
View changed files
📝
CHANGELOG.md(+4 -5)📝
src/mcpo/main.py(+22 -22)📄 Description
Pull Request Description
This PR refactors the CORS middleware setup into a reusable function to reduce code duplication and improve maintainability.
Changes Made
setup_cors_middlewarehelper function to configure CORS middleware consistentlyTesting
Checklist
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.