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 argument 'origins' to Cors docs #710

Merged
merged 15 commits into from
Dec 18, 2023
Merged

Conversation

carlosm27
Copy link
Contributor

Description
When allowing CORS, if the is not specify, it will throw this error message:
image

This PR fixes #

Copy link

vercel bot commented Dec 5, 2023

@carlosm27 is attempting to deploy a commit to the sparckles Team on Vercel.

A member of the Team first needs to authorize it.

Copy link

codspeed-hq bot commented Dec 5, 2023

CodSpeed Performance Report

Merging #710 will not alter performance

Comparing carlosm27:cors_docs (2e5e069) with main (d5fe958)

Summary

✅ 106 untouched benchmarks

@sansyrox
Copy link
Member

Hey @carlosm27 👋

Thank you for the PR 😄 I just saw this. Is it up for review?

@carlosm27
Copy link
Contributor Author

Hey @carlosm27 👋

Thank you for the PR 😄 I just saw this. Is it up for review?

Hey @sansyrox, don't worry. Yes.

@@ -21,14 +21,14 @@ You can allow CORS for your application by adding the following code:
from robyn import Robyn, ALLOW_CORS

app = Robyn(__file__)
ALLOW_CORS(app)
ALLOW_CORS(app, origins = "http://localhost:<PORT>/")
Copy link
Member

Choose a reason for hiding this comment

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

Hey @carlosm27 👋

Thank you for your PRs ✨ but origins is a list[str] and not just a str

Copy link
Member

@sansyrox sansyrox left a comment

Choose a reason for hiding this comment

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

LGTM! Thank you @carlosm27 😄

Copy link

vercel bot commented Dec 18, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
robyn ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 18, 2023 8:44pm

@sansyrox sansyrox merged commit 817f4da into sparckles:main Dec 18, 2023
42 of 57 checks passed
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