Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add CORS middleware to FastAPI application #253

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

zhangqiu-ai
Copy link

This update introduces the CORSMiddleware to the FastAPI application, allowing cross-origin requests from any source. The middleware configuration permits all methods and headers, enhancing the application's flexibility for client interactions.

This update introduces the CORSMiddleware to the FastAPI application, allowing cross-origin requests from any source. The middleware configuration permits all methods and headers, enhancing the application's flexibility for client interactions.
Copy link
Author

@zhangqiu-ai zhangqiu-ai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok

@zhangqiu-ai
Copy link
Author

ok

@ayancey
Copy link
Collaborator

ayancey commented Dec 5, 2024

Not a bad idea to add this functionality, but we should be encouraging the use of a reverse proxy.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants