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

configurable cors #251

Merged
merged 3 commits into from
Mar 29, 2023
Merged

configurable cors #251

merged 3 commits into from
Mar 29, 2023

Conversation

jeffchuber
Copy link
Contributor

Description of changes

Summarize the changes made by this PR.
closes #215

Test plan

How are these changes tested?
I'd like feedback on this.

Documentation Changes

None implemented yet

@@ -19,6 +19,7 @@ class Settings(BaseSettings):
chroma_server_http_port: str = None
chroma_server_ssl_enabled: bool = False
chroma_server_grpc_port: str = None
chroma_server_cors_allow_origins: List[str] = ["http://localhost:3000"]
Copy link
Contributor Author

Choose a reason for hiding this comment

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

maybe the default should be [] now that I think about it

Copy link
Contributor

Choose a reason for hiding this comment

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

Yes, running with localhost in CORS by default could cause a security issue.

@jeffchuber jeffchuber requested a review from levand March 29, 2023 06:10
@jeffchuber jeffchuber merged commit 9d47af4 into main Mar 29, 2023
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.

CORS policy is arbitrary
2 participants