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 to enable resource sharing with local web instance #251

Merged
merged 2 commits into from
May 20, 2021

Conversation

codytodonnell
Copy link
Collaborator

Added CORS middleware to allow requests between a local web instance and the api.

@tschaume does keeping allow_origins=["*"] pose any major risks?

@tschaume
Copy link
Member

It would probably be better to only enable this in debug mode, similar to here

@munrojm munrojm merged commit 734407f into main May 20, 2021
@tschaume tschaume deleted the feature/cors branch May 21, 2021 22:26
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.

3 participants