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

fix: add CORS support for simdata-api #4797

Merged
merged 3 commits into from
Jan 27, 2024
Merged

fix: add CORS support for simdata-api #4797

merged 3 commits into from
Jan 27, 2024

Conversation

jcschaff
Copy link
Collaborator

What new features does this PR implement?
in a deployed environment, the browser was getting CORS errors. This PR adds CORS (Cross-origin Resource Sharing) to the new simdata-api service using FastAPI's CORSMiddleware. The allowed origins were set to the same list used by combine-api.

@jcschaff jcschaff self-assigned this Jan 27, 2024
@probot-autolabeler probot-autolabeler bot added the docker Pull requests that update Docker code label Jan 27, 2024
Copy link

nx-cloud bot commented Jan 27, 2024

☁️ Nx Cloud Report

CI is running/has finished running commands for commit 06f5de6. As they complete they will appear below. Click to see the status, the terminal output, and the build insights.

📂 See all runs for this CI Pipeline Execution


✅ Successfully ran 9 targets

Sent with 💌 from NxCloud.

Copy link

sonarcloud bot commented Jan 27, 2024

Quality Gate Passed Quality Gate passed

Kudos, no new issues were introduced!

0 New issues
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

@jcschaff jcschaff merged commit 52cad43 into dev Jan 27, 2024
23 checks passed
@jcschaff jcschaff deleted the simdata-CORS branch January 27, 2024 15:17
@biosimulations-daemon
Copy link
Collaborator

🎉 This PR is included in version 9.55.2 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docker Pull requests that update Docker code released
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants