-
-
Notifications
You must be signed in to change notification settings - Fork 263
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
Conversation
@carlosm27 is attempting to deploy a commit to the sparckles Team on Vercel. A member of the Team first needs to authorize it. |
CodSpeed Performance ReportMerging #710 will not alter performanceComparing Summary
|
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>/") |
There was a problem hiding this comment.
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
There was a problem hiding this 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 😄
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Description
![image](https://private-user-images.githubusercontent.com/70811425/287882087-67fe98a8-e3e5-453b-b2b4-683ad6042826.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk0MzI0MjgsIm5iZiI6MTczOTQzMjEyOCwicGF0aCI6Ii83MDgxMTQyNS8yODc4ODIwODctNjdmZTk4YTgtZTNlNS00NTNiLWIyYjQtNjgzYWQ2MDQyODI2LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTMlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjEzVDA3MzUyOFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTFkYzhjMmMwMzg4MDAyNzdhZGYzZDY2ZDIzMzk0OGY2MGM0NzI4YTRhYmZkMTNmMmM1ZTMzZmE1Zjc4ODU5ZDEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.kJikdt0p8Hf0Jfnkb4dnoSadnnp2BcraDnNBz-BwJI0)
When allowing CORS, if the is not specify, it will throw this error message:
This PR fixes #